projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9a7c71
)
scsi: stex: Fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 20 Nov 2020 18:39:36 +0000
(12:39 -0600)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 2 Dec 2020 17:59:47 +0000
(12:59 -0500)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by
explicitly adding a break statement instead of letting the code fall
through to the next case.
Link:
https://github.com/KSPP/linux/issues/115
Link:
https://lore.kernel.org/r/20a7bcc10af2b762325c7078a4f472121a4fabc7.1605896060.git.gustavoars@kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/stex.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/stex.c
b/drivers/scsi/stex.c
index d4f10c0d813cf49b3309f1f13d832b4e4b6028a0..40473e4f850ff54473828c72a5d90fd8957fefa3 100644
(file)
--- a/
drivers/scsi/stex.c
+++ b/
drivers/scsi/stex.c
@@
-685,6
+685,7
@@
stex_queuecommand_lck(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))
done(cmd);
return 0;
}
+ break;
default:
break;
}