diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2021-04-20 22:11:29 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-20 22:23:17 +0200 |
commit | e06abcc68cb555377efd5aa781c014d3d68498b6 (patch) | |
tree | 66b1e9e605ca6d849734683441e704f83e2c9eb9 /drivers/ata/libata-eh.c | |
parent | pata_ipx4xx_cf: Fix unsigned comparison with less than zero (diff) | |
download | linux-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.c | 1 |
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: |