Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1973920imm; Sat, 6 Oct 2018 15:03:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV60p/FyyKRofvGvQkKLjIrELe+Re3nUjMH46jlcv31MjHX4pX341/GfvmGrUdP8SAhlee+hF X-Received: by 2002:a63:b409:: with SMTP id s9-v6mr15296750pgf.437.1538863426180; Sat, 06 Oct 2018 15:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538863426; cv=none; d=google.com; s=arc-20160816; b=I58vKOlLEOr4Ar+Slm/n4s/6VKYGRzPXT7iWfzNSFeZgo0qpEHogs/S7ImlPBaEpb9 g5O58EoGpBefV8yr0C/BQ3QmujlL8STutxj/jFv17pMNWVjiRUPnLGZEz1IJ6DTGOuSC k3zloSQgqln46mvXpYlKB9c3wqR+zkfGSEHkEM5m7Di4wvbsuOsIB2MRsx2HDaCw/xke d3BETlhA6aN/sGA2ge1NQTmlX3CazZNCSevIAfKDhUhaiZ6OGBcW1U37AdYeTdV5Yyfg awAPAxE0zzENSIMbbk/vfyh7dXChR1KTs9riRpsHpzsQ/Utyl7EJcbJPsxyR8tTuz5Xx QnAw== 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=S7hwzhEgxKs352mkTj5ijLGP2lNR7bvEebqn2wgiFUE=; b=NNIFDZNjELZqTIH9Gjomauz934n2GDh+AZ9LpePQu5bw9q+bbgdIGyTEivE+klFnEs XHV9x878uK3ONYlvL44/KMZV2texKbMYbVDNadfYslDpCrjxnhljgyaUZfI+7JWIMz4b LCyTb0KyGxkpPuN++jolzjjMJCuCFdcNSSxDepGpqWK2Q4U8eoFN7BiU5+0BHwVbsdKa pIbTk5XOmfZw4uEJZ/sdFjGrQAnoljqkgS409rzuVXN63kh9cv38aOEpPH9kgPMo1YcJ bL20Y6f+75zuySP1T+hxecxtqoAgY50G6G2rKHVH7G7pU+r8SXG7y3oXSa/iETe3SI8F OMKg== 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 y190-v6si14321930pfy.147.2018.10.06.15.03.30; Sat, 06 Oct 2018 15:03:46 -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 S1727371AbeJGFIT (ORCPT + 99 others); Sun, 7 Oct 2018 01:08:19 -0400 Received: from smtprelay0245.hostedemail.com ([216.40.44.245]:42644 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725779AbeJGFIT (ORCPT ); Sun, 7 Oct 2018 01:08:19 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 63A78840B; Sat, 6 Oct 2018 22:03:22 +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:3354:3622:3865:3866:3867:3868:3870:3871:3872:3874:4321:5007:6119:6238:7208:7576:7903:8957:9113:9389:10004:10400:10848:11026:11232:11473:11658:11914:12043:12438:12555:12740:12760:12895:13069:13141:13230:13311:13357:13439:14093:14096:14097:14181:14659:14721:21080:21451:21627:30034: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:29,LUA_SUMMARY:none X-HE-Tag: eggs24_3a538d06c6155 X-Filterd-Recvd-Size: 3093 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Sat, 6 Oct 2018 22:03:20 +0000 (UTC) Message-ID: 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 15:03:19 -0700 In-Reply-To: References: <20181006184246.29985-1-colin.king@canonical.com> <87r2h2euuy.fsf@kamboji.qca.qualcomm.com> <4e376919169bad265dc02040ae02548d2ac6c503.camel@perches.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 17:00 -0500, Larry Finger wrote: > On 10/6/18 3:17 PM, Joe Perches wrote: > > 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? > > I did not see any difference other than the removal of a bunch of magic numbers > and better formatting. Me neither.