spi: mpc512x-psc: fix compiler warning about uninitialized variable
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 21 Jul 2015 08:30:42 +0000 (10:30 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 21 Jul 2015 10:24:42 +0000 (11:24 +0100)
commit1f2112af11e4c330cd070464e95ba9f546b8959b
tree7b93e156dd940641068af7fb170a334d2e9d62ac
parent54e7ad47c94d26614acb4fcc577a79b3347c2d86
spi: mpc512x-psc: fix compiler warning about uninitialized variable

This fixes several warnings like:

drivers/spi/spi-mpc512x-psc.c: In function 'mpc512x_psc_spi_prep_xfer_hw':
arch/powerpc/include/asm/io.h:163:2: warning: '__ret' may be used uninitialized in this function [-Wmaybe-uninitialized]

introduced in commit 8bf960985dfc for some build configurations.

Fixes: 8bf960985dfc ("spi: mpc512x-psc: add support for Freescale MPC5125")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mpc512x-psc.c