diff options
author | Sifan Naeem <sifan.naeem@imgtec.com> | 2015-08-06 10:33:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-06 12:26:01 +0100 |
commit | 9176c6657b5c313cf504d157e6d91496ee5c8708 (patch) | |
tree | e233f4e5ef0ae362697df4bdb2dfca8b5e9115a5 | |
parent | b03ba9e314c12b2127243145b5c1f41b2408de62 (diff) | |
download | linux-stable-9176c6657b5c313cf504d157e6d91496ee5c8708.tar.gz linux-stable-9176c6657b5c313cf504d157e6d91496ee5c8708.tar.bz2 linux-stable-9176c6657b5c313cf504d157e6d91496ee5c8708.zip |
spi: img-spfi: fix kbuild test robot warning
drivers/spi/spi-img-spfi.c: In function 'img_spfi_setup':
drivers/spi/spi-img-spfi.c:446: warning: 'ret' may be used
uninitialized in this function.
Fixes: commit b03ba9e314c1 ("spi: img-spfi: fix multiple calls to request gpio")
Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
-rw-r--r-- | drivers/spi/spi-img-spfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-img-spfi.c b/drivers/spi/spi-img-spfi.c index 1ba90562d72a..61f7748aba4d 100644 --- a/drivers/spi/spi-img-spfi.c +++ b/drivers/spi/spi-img-spfi.c @@ -443,7 +443,7 @@ static int img_spfi_unprepare(struct spi_master *master, static int img_spfi_setup(struct spi_device *spi) { - int ret; + int ret = -EINVAL; struct img_spfi_device_data *spfi_data = spi_get_ctldata(spi); if (!spfi_data) { |