commit | 1d2319efb6a970d5f5740a60828244e6c309df2b | [log] [tgz] |
---|---|---|
author | Olof Johansson <olof@lixom.net> | Fri Nov 16 19:55:04 2018 -0800 |
committer | Mark Brown <broonie@kernel.org> | Tue Nov 27 14:07:08 2018 +0000 |
tree | ea1960e2103d9caa7279917c627b4b10cf6123ea | |
parent | a1880d38674b1b7e120a231151298b2eb530b645 [diff] |
spi: npcm: Fix uninitialized variable warning The compiler has no way to know that rsize 1 or 2 are the only valid values. Also simplify the code a bit with early return. The warning was: drivers/spi/spi-npcm-pspi.c:215:6: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Mark Brown <broonie@kernel.org>