summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2021-04-20 22:11:29 +0200
committerJens Axboe <axboe@kernel.dk>2021-04-20 22:23:17 +0200
commite06abcc68cb555377efd5aa781c014d3d68498b6 (patch)
tree66b1e9e605ca6d849734683441e704f83e2c9eb9 /drivers/ata/libata-eh.c
parentpata_ipx4xx_cf: Fix unsigned comparison with less than zero (diff)
downloadlinux-e06abcc68cb555377efd5aa781c014d3d68498b6.tar.xz
linux-e06abcc68cb555377efd5aa781c014d3d68498b6.zip
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>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-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: