projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c38ae56
)
libata: Fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Tue, 20 Apr 2021 20:11:29 +0000
(15:11 -0500)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 20 Apr 2021 20:23:17 +0000
(14:23 -0600)
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
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/libata-eh.c
patch
|
blob
|
history
diff --git
a/drivers/ata/libata-eh.c
b/drivers/ata/libata-eh.c
index b6f92050e60cb639768fdddf3be3d77a1e1c3c08..2db1e9c660880d5d0458aaf0cc119edf95afc471 100644
(file)
--- a/
drivers/ata/libata-eh.c
+++ b/
drivers/ata/libata-eh.c
@@
-2613,6
+2613,7
@@
int ata_eh_reset(struct ata_link *link, int classify,
switch (tmp) {
case -EAGAIN:
rc = -EAGAIN;
+ break;
case 0:
break;
default: