summaryrefslogtreecommitdiff
path: root/include/scsi
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2022-03-01 11:04:48 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-03-15 07:10:27 +0300
commite1b353e7a31dcaf47c234812c46a2db9cd5be584 (patch)
treefaa88e6bc0fbf7aa5b0aa16b9b279cd9b57b7bb9 /include/scsi
parent7db304bd2a4fbf98ed763cd7f599598f5d0e2477 (diff)
downloadlinux-e1b353e7a31dcaf47c234812c46a2db9cd5be584.tar.xz
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/20220301080448.112813-1-yang.lee@linux.alibaba.com Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions