summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2021-04-20 23:11:29 +0300
committerJens Axboe <axboe@kernel.dk>2021-04-20 23:23:17 +0300
commite06abcc68cb555377efd5aa781c014d3d68498b6 (patch)
tree66b1e9e605ca6d849734683441e704f83e2c9eb9
parentc38ae56ee034623c59e39c0130ca0dec086c1a39 (diff)
downloadlinux-e06abcc68cb555377efd5aa781c014d3d68498b6.tar.xz
libata: Fix fall-through warnings for Clang
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>
-rw-r--r--drivers/ata/libata-eh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index b6f92050e60c..2db1e9c66088 100644
--- 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: