From: Gustavo A. R. Silva Date: Mon, 22 Oct 2018 20:38:11 +0000 (+0200) Subject: ath9k: ar9002_phy: mark expected switch fall-throughs X-Git-Tag: v5.0-rc1~129^2~161^2~9^2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2a881055094444da9f7c5a9609b261bba8634a9;p=thirdparty%2Fkernel%2Flinux.git ath9k: ar9002_phy: mark expected switch fall-throughs In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1056532 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath9k/ar9002_phy.c b/drivers/net/wireless/ath/ath9k/ar9002_phy.c index 7132918812082..6f32b8d2ec7f9 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_phy.c @@ -119,7 +119,7 @@ static int ar9002_hw_set_channel(struct ath_hw *ah, struct ath9k_channel *chan) aModeRefSel = 2; if (aModeRefSel) break; - /* else: fall through */ + /* fall through */ case 1: default: aModeRefSel = 0;