Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2206691ima; Mon, 22 Oct 2018 06:11:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV63p5qzxzEffGR/HwhYDvcK6TZVLT0bYtcDSYpweUiKT3VBVGEmEVEqYtW2fuqyraHWXN11r X-Received: by 2002:a62:7107:: with SMTP id m7-v6mr38086668pfc.56.1540213900440; Mon, 22 Oct 2018 06:11:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540213900; cv=none; d=google.com; s=arc-20160816; b=YRV0wf9mQSsrVW26wR0ewNul1noWKEUltIwO4JfIQXKhD8LOW4a9hJ9I5dPqx04enp y9llz4RZPQrywhtTNjc6PFoS24jR6ArbkcqtzxvJzbuNTj351xE87/1Rurs4E3VAyuni p6L1+kFbU5uGba6RU0OU+3Dk0nP8uomw3WVyyr8F+LXYlwfrrl6xmPVvGsSRvehjUeuF OhSf3V+gC25slH9nN3KRxxDk9Ftv8TuM/GGfDPWkV1+BZ4HIp89iA0hYWmlUgRp5qE03 YRXYnfnnHTtWpnmjJHpapZLV7bDehbhRCPF9yVpgu5BqJbcPm2O5XPPvN+qwon4C06Ox pq5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KmMrKRjQplcfa/KgjAupZ9wXkuJRJ+h9V2EsU/tMaLs=; b=WxzVp7mayX6MWK7igaxPY4YSwtrGpycV2Y+RVWQm8PY/Mswhibqvcu0Ud4RDIVZqtX 638iVvaWb6sMJAuqZgZtU6aoqVOE6z//OgWAzGkkdiNaIgCYN/7+zXiC8xDqwEI+52hq g5NCne7e+zmJWKO7ouLWKhXxVgBN+JkFRQB81+cNpJDPnHPd7qtW/ITKUgtMznPyQKOA hSR1yZIdqk6ZqX2Qx0N2+P0DS8qyA0M9HNqV9OiUJ76gdWvjoIpjED0iYhFpBu1Hh45I KyttDWCd/nBFwbGNU43iK4N5rBJT6qXN0xIjAxdZQwYEGEVi1VfY7WJcbOZ8jc7eR0p8 5NHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i33-v6si12878182pld.433.2018.10.22.06.11.24; Mon, 22 Oct 2018 06:11:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728613AbeJVUIZ (ORCPT + 99 others); Mon, 22 Oct 2018 16:08:25 -0400 Received: from gateway23.websitewelcome.com ([192.185.50.119]:43246 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728243AbeJVUIZ (ORCPT ); Mon, 22 Oct 2018 16:08:25 -0400 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 047AE9641 for ; Mon, 22 Oct 2018 06:50:11 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id EYiogRDrGSjJAEYiogvffc; Mon, 22 Oct 2018 06:50:11 -0500 X-Authority-Reason: nr=8 Received: from lfbn-1-466-13.w86-245.abo.wanadoo.fr ([86.245.173.13]:41624 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gEYio-001GKv-82; Mon, 22 Oct 2018 06:50:10 -0500 Date: Mon, 22 Oct 2018 13:50:08 +0200 From: "Gustavo A. R. Silva" To: linux-kernel@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , linux-wireless@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 1/2] rtl8xxxu: Mark expected switch fall-throughs Message-ID: <08817d137b32d5d091eacc6fee0a3eca68d49d94.1540208577.git.gustavo@embeddedor.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 86.245.173.13 X-Source-L: No X-Exim-ID: 1gEYio-001GKv-82 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: lfbn-1-466-13.w86-245.abo.wanadoo.fr (embeddedor) [86.245.173.13]:41624 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 7 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1357355 ("Missing break in switch") Addresses-Coverity-ID: 1357378 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 56040b1..c6b0686 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -1153,6 +1153,7 @@ void rtl8xxxu_gen1_config_channel(struct ieee80211_hw *hw) switch (hw->conf.chandef.width) { case NL80211_CHAN_WIDTH_20_NOHT: ht = false; + /* fall through */ case NL80211_CHAN_WIDTH_20: opmode |= BW_OPMODE_20MHZ; rtl8xxxu_write8(priv, REG_BW_OPMODE, opmode); @@ -1280,6 +1281,7 @@ void rtl8xxxu_gen2_config_channel(struct ieee80211_hw *hw) switch (hw->conf.chandef.width) { case NL80211_CHAN_WIDTH_20_NOHT: ht = false; + /* fall through */ case NL80211_CHAN_WIDTH_20: rf_mode_bw |= WMAC_TRXPTCL_CTL_BW_20; subchannel = 0; @@ -1748,9 +1750,11 @@ static int rtl8xxxu_identify_chip(struct rtl8xxxu_priv *priv) case 3: priv->ep_tx_low_queue = 1; priv->ep_tx_count++; + /* fall through */ case 2: priv->ep_tx_normal_queue = 1; priv->ep_tx_count++; + /* fall through */ case 1: priv->ep_tx_high_queue = 1; priv->ep_tx_count++; -- 2.7.4