diff options
author | Tom Rix <[email protected]> | 2020-09-07 08:32:25 -0700 |
---|---|---|
committer | Tony Luck <[email protected]> | 2020-09-08 14:56:17 -0700 |
commit | fbd4ab780284aeb66374223fa3ac0cd47611aebe (patch) | |
tree | 3a30924c95edc2c876179756497d353be888eb59 /scripts/gdb/linux/config.py | |
parent | 66077adb70a2a9e92540155b2ace33ec98299c90 (diff) |
EDAC, sb_edac: Simplify switch statement
clang static analyzer reports this problem
sb_edac.c:959:2: warning: Undefined or garbage value
returned to caller
return type;
^~~~~~~~~~~
This is a false positive.
However by initializing the type to DEV_UNKNOWN the 3 case can be
removed from the switch, saving a comparison and jump.
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions