]> Git Repo - linux.git/commitdiff
libata: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <[email protected]>
Tue, 20 Apr 2021 20:11:29 +0000 (15:11 -0500)
committerJens Axboe <[email protected]>
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/ata/libata-eh.c

index b6f92050e60cb639768fdddf3be3d77a1e1c3c08..2db1e9c660880d5d0458aaf0cc119edf95afc471 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:
This page took 0.05213 seconds and 4 git commands to generate.