summaryrefslogtreecommitdiffstats
path: root/crypto/asymmetric_keys
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-13 21:51:29 +0100
committerMark Brown <broonie@kernel.org>2016-01-15 18:13:53 +0000
commitebea7c0545d4d5e554b84c3ee8072f13c3fdd2ba (patch)
tree48367a617efced8adee1e856b330103a00a02a70 /crypto/asymmetric_keys
parentcabeea980879c2c701b0bd03f145c9f7dae17a63 (diff)
downloadlinux-ebea7c0545d4d5e554b84c3ee8072f13c3fdd2ba.tar.bz2
spi: fix counting in spi-loopback-test code
These variables are always used uninitialized: drivers/spi/spi-loopback-test.c: In function 'spi_test_run_iter': drivers/spi/spi-loopback-test.c:768:17: warning: 'rx_count' may be used uninitialized in this function [-Wmaybe-uninitialized] drivers/spi/spi-loopback-test.c:762:17: warning: 'tx_count' may be used uninitialized in this function [-Wmaybe-uninitialized] Adding an explicit initialization seems to be the only workable solution here, to make the code behave correctly and build without warning. Fixes: 84e0c4e5e2c4 ("spi: add loopback test driver to allow for spi_master regression tests") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'crypto/asymmetric_keys')
0 files changed, 0 insertions, 0 deletions