summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>2022-04-14 10:40:40 +0200
committerMark Brown <broonie@kernel.org>2022-04-14 16:04:11 +0100
commit73f93db5c49b9f52c902e5dc6c750bf9832e0450 (patch)
tree8e771b992d350cc3db562810fa1b5b7504d0d20b /tools/perf/scripts/python
parente7cc4244bc2086f4074b8e4d4f78e7b9f5007224 (diff)
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions