From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: mxc: iomux-v1: Fix build warning
Date: Thu, 23 Jun 2011 09:46:37 +0200 [thread overview]
Message-ID: <20110623074637.GP6069@pengutronix.de> (raw)
In-Reply-To: <1308753060-14489-1-git-send-email-fabio.estevam@freescale.com>
Applied
On Wed, Jun 22, 2011 at 11:31:00AM -0300, Fabio Estevam wrote:
> Fix the following warning:
>
> CC arch/arm/plat-mxc/iomux-v1.o
> arch/arm/plat-mxc/iomux-v1.c: In function 'mxc_gpio_setup_multiple_pins':
> arch/arm/plat-mxc/iomux-v1.c:160: warning: 'ret' may be used uninitialized in this function
> arch/arm/plat-mxc/iomux-v1.c:160: note: 'ret' was declared here
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> arch/arm/plat-mxc/iomux-v1.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/plat-mxc/iomux-v1.c b/arch/arm/plat-mxc/iomux-v1.c
> index d76f3ac..1f73963 100644
> --- a/arch/arm/plat-mxc/iomux-v1.c
> +++ b/arch/arm/plat-mxc/iomux-v1.c
> @@ -157,7 +157,7 @@ EXPORT_SYMBOL(mxc_gpio_mode);
> static int imx_iomuxv1_setup_multiple(const int *list, unsigned count)
> {
> size_t i;
> - int ret;
> + int ret = 0;
>
> for (i = 0; i < count; ++i) {
> ret = mxc_gpio_mode(list[i]);
> --
> 1.6.0.4
>
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2011-06-23 7:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 14:31 [PATCH] ARM: mxc: iomux-v1: Fix build warning Fabio Estevam
2011-06-23 7:46 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110623074637.GP6069@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).