diff options
| author | Paul Kocialkowski <[email protected]> | 2022-04-14 10:40:40 +0200 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2022-04-14 16:04:11 +0100 |
| commit | 73f93db5c49b9f52c902e5dc6c750bf9832e0450 (patch) | |
| tree | 8e771b992d350cc3db562810fa1b5b7504d0d20b /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | e7cc4244bc2086f4074b8e4d4f78e7b9f5007224 (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 <[email protected]>
Fixes: b3fe2e516741 ("spi: core: Only check bits_per_word validity when explicitly provided")
Reported-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions