Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2063648imm; Sat, 6 Oct 2018 17:48:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV609hkLBAeX+/tBOQ2/VdWmfn3wKadFQGHIUMSJb2MU2BBBFYFKNJf++Zxbme5zZumsljF1I X-Received: by 2002:a17:902:4583:: with SMTP id n3-v6mr18127187pld.255.1538873314645; Sat, 06 Oct 2018 17:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538873314; cv=none; d=google.com; s=arc-20160816; b=keZTurTYUKK+h6nd6t02InkJEyT3i+UTkkehWV1z7MBjqxYpkQ6ng5OdcxqpMigxh4 1spLgXo4cm9D3too56+9F7Tl5KMoqN1TFM7smTBdqzGkwm44KFjibDrNJEv5L/QLYdhY yrYl3jbcmS7n8F8zEi7qatP/j45+f0qCt8PmQFQEdqIC4THYQtF/1Vo3etI5vvO6esUs /KWTXgEe4gENh6IIhlbztM8/k7NB3u0aGmdK9L3zus4460ICC/kF6wIHzcVvmOTA01yz TCOjtGzdX8neMRe4lFM9ysZcnA910a1MaiOp4CSHe+sSjYzF5r3rEgY+kLzUVkbNTYGg 32+w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=KvLdhcYzwUL/IJwy+ZMdyT45YRpi1CApohmlilxGAhQ=; b=Z0P0ioVbwG8HaDgbFlJTYfDRodO9Upy42iaVAR/HhA//j9oaSbM0+zR6NRiQc70G55 tjJvsjs0/q8GG0OcxJdbQv3FRm9sHb73++Y8UoRKG5RQgaKzoVdeL0G8BmN65GAFlGIV xgxe5DIC6vyvEYLqLNX6V3xkLBQzNP5bbXw47X9+U3nuv/kq7ah38c/Mbn9y1/4DbInb Otzv9dpBEFnOOVM2fM00oBXuGQX9hJzKjKcRMDsNAcgZHDrvV9+Y3PDeq0gV0F5fndPL Vm7jnTE1oHCZEy7Z/08uTo+AV8JiBkuY618JcILjfekGRAYPES/6gJ/hgWQgCA74EHDG aVzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RVkWyI2k; 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 66-v6si9471179pla.180.2018.10.06.17.48.19; Sat, 06 Oct 2018 17:48:34 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=RVkWyI2k; 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 S1726458AbeJGHxb (ORCPT + 99 others); Sun, 7 Oct 2018 03:53:31 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:32850 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbeJGHxa (ORCPT ); Sun, 7 Oct 2018 03:53:30 -0400 Received: by mail-oi1-f193.google.com with SMTP id a203-v6so13276634oib.0; Sat, 06 Oct 2018 17:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=KvLdhcYzwUL/IJwy+ZMdyT45YRpi1CApohmlilxGAhQ=; b=RVkWyI2kEuKDp2b4wSKrAYus5vFDtZ9WP3OJIIwwfAOjRFlnNmmRocOlHQC60my0ND cZb66Pzyfavw5WOoRRykx4qTZvh0ZEFID+aWkL90TBRneu4PXqTOC2XwF0uivHjt2O7q HrqKkfInYqJ9GgSyPNJ6dys7K9r6kTn+3CrFPmyBhUVjLRpqT7kG0hZ06wSnSHuBJR9Y 5bINdcv5GGfCJaaVueZIUGlhl39wEd4PlRCe3vEBn2KyeEgyMMzyJ8OUVSTtZqhvfNLa ZqfiXRF4nwYY0HVpDWENNVHqrqDnKL1yDnWatr3muIK8h4rlnQi5XGqnn9EALGNBwvKY Smqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KvLdhcYzwUL/IJwy+ZMdyT45YRpi1CApohmlilxGAhQ=; b=LLhiwKNyJdmO26izhgmapeXzca0D8qnU8c0Zdyw+tNAnge153AcTeguFZkMvhivOWL DSu1Cj3g/yXF+nL802Om8DtOotOEN9juTvpZSa79B5HbAzwv1NGbcecbDS7qQs4Jsvay 8DbZpcnBrc6DLBct1EWsNgGpOCHyBfodJ8x0LOitGaDGuyHwHmNA0OSLPc/Qyb4gyo+0 kUxJ9RNTXmgczxoZkHzTTbTWDIxKh/0UiQwLH2cbUu4AmfuJWfFVExaSgFjDA7rxaZrx dHCWUnOqYtf+WpTO5a70xGw08e4buFhoCTRxvpM6/Syky4EQrFQNeKJ6p1xddNgosPXV 6/RA== X-Gm-Message-State: ABuFfohdsubsfl/yxQEqSB3I/feX/d1oqE7VuClrES0GDLbG4XbMiF/u t99PNgiY5pLEf1AaBFsPjFeSQBhI X-Received: by 2002:aca:5c3:: with SMTP id 186-v6mr2232657oif.185.1538873291336; Sat, 06 Oct 2018 17:48:11 -0700 (PDT) Received: from [192.168.1.107] (cpe-24-31-245-230.kc.res.rr.com. [24.31.245.230]) by smtp.gmail.com with ESMTPSA id j79-v6sm5679545oiy.13.2018.10.06.17.48.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Oct 2018 17:48:10 -0700 (PDT) Subject: Re: [PATCH] rtlwifi: rtl8821ae: add in a missing break in switch statement To: Joe Perches , 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 References: <20181006184246.29985-1-colin.king@canonical.com> <87r2h2euuy.fsf@kamboji.qca.qualcomm.com> <4e376919169bad265dc02040ae02548d2ac6c503.camel@perches.com> From: Larry Finger Message-ID: <617cf0d8-a99a-1f8c-b1a2-7e3f07aa6d24@lwfinger.net> Date: Sat, 6 Oct 2018 19:48:04 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/6/18 5:03 PM, Joe Perches wrote: > 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. Colin, Do you want to push the new patch removing the duplicate routine from rtl8821ae? Larry