"drivers/md/git@git.tuxist.de:jan.koester/linux.git" did not exist on "0f843e65d9eef4936929bb036c5f771fb261eea4"
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>
Loading
Please sign in to comment