diff options
author | Yang Li <[email protected]> | 2022-03-01 16:04:48 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-03-15 00:10:27 -0400 |
commit | e1b353e7a31dcaf47c234812c46a2db9cd5be584 (patch) | |
tree | faa88e6bc0fbf7aa5b0aa16b9b279cd9b57b7bb9 /scripts/gdb/linux/mm.py | |
parent | 7db304bd2a4fbf98ed763cd7f599598f5d0e2477 (diff) |
scsi: core: Remove unreachable code warning
The smatch tool reported the following warning:
drivers/scsi/scsi_error.c:1988 scsi_decide_disposition() warn: ignoring
unreachable code.
Remove the "default:return FAILED;" instead of "return FAILED;" reported by
smatch, because compilers can provide more useful diagnostics about
switch/case statements that do not have a default statement, especially if
the "switch" applies to a value with enumeration type.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions