diff options
| author | Li-hao Kuo <[email protected]> | 2022-02-14 10:20:11 +0800 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2022-02-14 12:53:17 +0000 |
| commit | 5790597d7113faabb1714d3d1efa268e36eb4811 (patch) | |
| tree | a8747603b15f11c6f46fbba257b16292173f28de /tools/perf/scripts/python/bin | |
| parent | 2cbfa2128662c6b841f68cd2fe54df199457e38a (diff) | |
spi: Fix warning for Clang build and simplify code
Clang build fails with
spi-sunplus-sp7021.c:405:2: error: variable 'ret' is used
uninitialized whenever switch default is taken
default:
simplify code
Restore initializing ret. and add return error at default
Fixes: 47e8fe57a66f ("spi: Modify irq request position and modify parameters")
Reported-by: Tom Rix <[email protected]>
Reported-by: kernel test robot <[email protected]>
Reported-by: Nathan Chancellor <[email protected]>
Reported-by: Mark Brown <[email protected]>
Signed-off-by: Li-hao Kuo <[email protected]>
Link: https://lore.kernel.org/r/7d91e6ce29f9a8df2c53a47b4b977664020e237a.1644805060.git.lhjeff911@gmail.com
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions