libata: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 20 Apr 2021 20:11:29 +0000 (15:11 -0500)
committerJens 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

index b6f9205..2db1e9c 100644 (file)
@@ -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: