From: Gustavo A. R. Silva Date: Tue, 20 Apr 2021 20:11:29 +0000 (-0500) Subject: libata: Fix fall-through warnings for Clang X-Git-Tag: accepted/tizen/unified/20230118.172025~7356^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e06abcc68cb555377efd5aa781c014d3d68498b6;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jens Axboe --- diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index b6f9205..2db1e9c 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: