diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-10-12 12:49:22 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-11-11 22:43:21 -0500 |
commit | 783058fd582a1d8afbbf1d4e9b7918614a4550ff (patch) | |
tree | fdc6baf1c2d6df1e70d3af448cd6fca12bdabad9 /drivers | |
parent | 58c12bdc5d924e4bca60c2660df2a71be4953ac9 (diff) |
spi_mpc8xxx: Fix uninitialized variable
This patch fixes the following warning:
CC drivers/spi/spi_mpc8xxx.o
spi_mpc8xxx.c: In function 'of_mpc8xxx_spi_probe':
spi_mpc8xxx.c:681: warning: 'ret' may be used uninitialized in this function
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi_mpc8xxx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi_mpc8xxx.c b/drivers/spi/spi_mpc8xxx.c index 0fd0ec4d3a7d..518671b8afe5 100644 --- a/drivers/spi/spi_mpc8xxx.c +++ b/drivers/spi/spi_mpc8xxx.c | |||
@@ -709,6 +709,7 @@ static int of_mpc8xxx_spi_get_chipselects(struct device *dev) | |||
709 | gpio = of_get_gpio_flags(np, i, &flags); | 709 | gpio = of_get_gpio_flags(np, i, &flags); |
710 | if (!gpio_is_valid(gpio)) { | 710 | if (!gpio_is_valid(gpio)) { |
711 | dev_err(dev, "invalid gpio #%d: %d\n", i, gpio); | 711 | dev_err(dev, "invalid gpio #%d: %d\n", i, gpio); |
712 | ret = gpio; | ||
712 | goto err_loop; | 713 | goto err_loop; |
713 | } | 714 | } |
714 | 715 | ||