summaryrefslogtreecommitdiff
path: root/drivers/edac/aspeed_edac.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-09-07 18:32:25 +0300
committerTony Luck <tony.luck@intel.com>2020-09-09 00:56:17 +0300
commitfbd4ab780284aeb66374223fa3ac0cd47611aebe (patch)
tree3a30924c95edc2c876179756497d353be888eb59 /drivers/edac/aspeed_edac.c
parent66077adb70a2a9e92540155b2ace33ec98299c90 (diff)
downloadlinux-fbd4ab780284aeb66374223fa3ac0cd47611aebe.tar.xz
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 <trix@redhat.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/r/20200907153225.7294-1-trix@redhat.com
Diffstat (limited to 'drivers/edac/aspeed_edac.c')
0 files changed, 0 insertions, 0 deletions