diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2022-04-14 11:40:40 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-14 18:04:11 +0300 |
commit | 73f93db5c49b9f52c902e5dc6c750bf9832e0450 (patch) | |
tree | 8e771b992d350cc3db562810fa1b5b7504d0d20b /drivers/spi/spi-pic32-sqi.c | |
parent | e7cc4244bc2086f4074b8e4d4f78e7b9f5007224 (diff) | |
download | linux-73f93db5c49b9f52c902e5dc6c750bf9832e0450.tar.xz |
spi: core: Initialize returned status in spi_setup
The previous commit that made bits-per-word validation conditional
results in leaving no unconditional affectation of the status variable.
Since the variable is returned at the end of the function, initialize
it to avoid returning an undefined value.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Fixes: b3fe2e516741 ("spi: core: Only check bits_per_word validity when explicitly provided")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220414084040.975520-1-paul.kocialkowski@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pic32-sqi.c')
0 files changed, 0 insertions, 0 deletions