aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2020-09-07 15:32:25 +0000
committerTony Luck <[email protected]>2020-09-08 21:56:17 +0000
commitfbd4ab780284aeb66374223fa3ac0cd47611aebe (patch)
tree3a30924c95edc2c876179756497d353be888eb59 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentEDAC/ti: Fix handling of platform_get_irq() error (diff)
downloadkernel-fbd4ab780284aeb66374223fa3ac0cd47611aebe.tar.gz
kernel-fbd4ab780284aeb66374223fa3ac0cd47611aebe.zip
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions