Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1909617imm; Sat, 6 Oct 2018 13:18:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV61RXXONRwBbQ6yx/3VzWc1qhJvBxd/tAjt8ghWKm7kX/IavLsfBQ8C473ILMunb5awherxx X-Received: by 2002:a62:22c7:: with SMTP id p68-v6mr18224335pfj.53.1538857086774; Sat, 06 Oct 2018 13:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538857086; cv=none; d=google.com; s=arc-20160816; b=c+5g3nRwygDHpgMn6rTvAktznk8YH2EL1lzs+b4Ue4U+1PA4+zlOzKCAnS8pcN3Yjb 7P/mDJ+HlhKLeMKJS/OHX76+JaYnLpHTMjLwuIBxKklWNRIX9Zom+wOUhEaG2V6qYXeV WUedOkJDUFI7znW8h5FegtdStCMrYDKaSxqpnbVbYWXc9RQ329T6DJ/qk+dw27ih+/qf x+hYPOQ7ftz1coCFfq7G6xIIu1UfSGpehMrqRVYb8ouFiBHSXGw9TIwieoGXzx/0IEkr M5FxzTLcf0bf9K0A5j/f3WfKGvaQMoWxcAOdDZCqWVOu/+/EGj5u1XeLfyQQtpHbh9GP UR3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=J2OSk9gz5WsxyAaaM28BI7Esse+IXD1wGIjBf5gBmWI=; b=QWgq77tEEQB8rPk3Vo1aKzzjoJAe9Dl86Slho9QtnMwKigw83ROMkMjwJtTgEyqk30 wSV0/L7D6s6Gy1ODUuijJUchndsdcQAgQD2TQyBbLjCCTNNhwBt91gAu6B2Vdf7pRrnu cTZD5ElHojcjYywGqXDUG5LTPe7LBugEccAxITedXm55drUAw4U9Hx3kemyPP8pHvxk1 j3sxCu8gX8A+fH/C1n0e7p4ophjK4IcGDfmdlYXARsMYAIhDRLrh38OkojuqRxelzD6t hnEtRTbq8oi4ZD+UhPma9COgXAq9C/QbHaxoZf8D+uhfXtt74E5teHslds0zC4pDqNZm C/4Q== 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 v6-v6si11755865pgb.333.2018.10.06.13.17.51; Sat, 06 Oct 2018 13:18:06 -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 S1728015AbeJGDW0 (ORCPT + 99 others); Sat, 6 Oct 2018 23:22:26 -0400 Received: from smtprelay0077.hostedemail.com ([216.40.44.77]:44570 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726204AbeJGDW0 (ORCPT ); Sat, 6 Oct 2018 23:22:26 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 97002182CED34; Sat, 6 Oct 2018 20:17:46 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::,RULES_HIT:41:355:379:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2198:2199:2200:2393:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:4321:5007:6119:6238:7208:7576:7903:8957:9113:10004:10400:10848:11026:11232:11473:11658:11914:12043:12438:12555:12740:12760:12895:13069:13141:13230:13311:13357:13439:14096:14097:14181:14659:14721:21080:21451:21627:30045:30054:30091,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: field96_9711a1a8a32b X-Filterd-Recvd-Size: 2616 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf14.hostedemail.com (Postfix) with ESMTPA; Sat, 6 Oct 2018 20:17:44 +0000 (UTC) Message-ID: <4e376919169bad265dc02040ae02548d2ac6c503.camel@perches.com> Subject: Re: [PATCH] rtlwifi: rtl8821ae: add in a missing break in switch statement From: Joe Perches To: Larry Finger , Kalle Valo , Colin King Cc: Ping-Ke Shih , "David S . Miller" , Tsang-Shian Lin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 06 Oct 2018 13:17:43 -0700 In-Reply-To: References: <20181006184246.29985-1-colin.king@canonical.com> <87r2h2euuy.fsf@kamboji.qca.qualcomm.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-10-06 at 15:05 -0500, Larry Finger wrote: > On 10/6/18 2:30 PM, Kalle Valo wrote: > > Colin King writes: > > > > > From: Colin Ian King > > > > > > The switch case RATR_INX_WIRELESS_MC has a missing break, this seems > > > to be unintentional as the setting of variable ret gets overwritten > > > when the case falls through to the following RATR_INX_WIRELESS_AC_5N > > > case. Fix this by adding in the missing break. > > > > > > Detected by CoverityScan, CID#1167237 ("Missing break in switch") > > > > > > Fixes: 3c05bedb5fef ("Staging: rtl8812ae: Add Realtek 8821 PCI WIFI driver") > > > Signed-off-by: Colin Ian King > > > --- > > > drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 1 + > > > > Is the fixes line correct? This patch is not for staging. > > No, the correct fixes commit is 21e4b0726dc67 (" rtlwifi: rtl8821ae: Move driver > from staging to regular tree"). > > This driver was initially placed in staging as it was needed for a special > project, which is the commit that Colin used. As the patch subject states, the > driver was later moved to the regular wireless tree. > > That break is required, thus ACKed-by: Larry Finger Why not remove this entirely and use the generic routine in drivers/net/wireless/realtek/rtlwifi/base.c? Is there a real difference?