diff options
| author | Tom Rix <[email protected]> | 2020-09-07 15:32:25 +0000 |
|---|---|---|
| committer | Tony Luck <[email protected]> | 2020-09-08 21:56:17 +0000 |
| commit | fbd4ab780284aeb66374223fa3ac0cd47611aebe (patch) | |
| tree | 3a30924c95edc2c876179756497d353be888eb59 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | EDAC/ti: Fix handling of platform_get_irq() error (diff) | |
| download | kernel-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
