]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: mxc: iomux-v1: Fix build warning
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 22 Jun 2011 14:31:00 +0000 (11:31 -0300)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 23 Jun 2011 07:41:47 +0000 (09:41 +0200)
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>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/iomux-v1.c

index d76f3ac25e5df81b84af4af736d28f2544c795dc..1f73963bc13e916e895433ffd5e5d7687e9e333d 100644 (file)
@@ -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]);