Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1257100pxf; Fri, 2 Apr 2021 05:48:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNln7vzcSyPlL7ttX13YL7EFlApB8fGtb/KA50iY6nuL4zkDTtb4ObkXrTzZicFavDDycq X-Received: by 2002:a92:da12:: with SMTP id z18mr10774935ilm.189.1617367716695; Fri, 02 Apr 2021 05:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617367716; cv=none; d=google.com; s=arc-20160816; b=fnx+bIbFsyDaVfvl8eqODBFzRhs5boEzLyorm/kmOlRC4CVMr9HimeVn9jYp9k6q8C dnn6w2L8WMhUEygZoz0ayEjhmIFxCKvFNEykqX6DDT+aAlOtxRbbXbo9VXAPWoH/xKEL uEZbMFA/mG8CAYPQYN10ihifuL4qkr+4xLDR6ZMfHa9sVExWj9x+4sGplpqQWzYExQv8 FvYnYS/U41u94EMGpkZpKoLJevjY1SrEfSwGO6Gs8fNOHGszmuFK3OY9sgJugBs6J8TR cAGU7XeQW6ycJX8ekYT1LRUuCiXAQC1071WFVmxMBn2hRnxbOqNXhQ+5ui1BW5pW8DJ3 lRRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=082wqx2P1Q/FYRCIuO9q4NfBvAAKT80ChY0GnvxzIEw=; b=CspIF9jkbdOkn5PhxechQk/5QX68H/vTnbZ4DQ8ulp/mEeM8sBnqbx0la4y/WjSExm 0ase+NpLBcIG2M8ZoOiQmTuGU9WsrgyxDVyCxoP9ztU37evqzuWsPpMIMEkQXBXHXiOi 8TPg//1gKOCaPt+iBiD1fVgns5ABvfjhWQMu8ZNUGnEit7ZiJlbT/3QMkxXmt5qaeWmf 7Px8TlxEL6s/gEFG8H4lV4WE4dBboEprFBg2XdRP1S+ioUom6RpaA5BYq32+Qi0Ran1Z s36fmyLWQOS2p+T+DtsdGwvVB5RgjYE4HVZqGJK8Bfg5sF6fh0BB1m0oWAOLGaQpn4b1 mNuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hhb37daA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si8164941ill.12.2021.04.02.05.48.20; Fri, 02 Apr 2021 05:48:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hhb37daA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235357AbhDBMrO (ORCPT + 99 others); Fri, 2 Apr 2021 08:47:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:54692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235304AbhDBMrN (ORCPT ); Fri, 2 Apr 2021 08:47:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 54DFF61106; Fri, 2 Apr 2021 12:47:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617367632; bh=zxuhmIWb9ulD0jMERTAwiNj/4ow7lzX4fNftxtw8LIs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hhb37daATvI06G+um3eDcB4v6r3Tck6S22o2x7w+GwEN1bsJHXMMnRSerxrQ9vURW TEKL/8XwmsAYmn/OGaZ2NpGR2imaepPvL4CRbUdeNFbyOpms1hB63Tqc+s3bT2tTBY fEKJSTrggKjWnc2Oq3rowFGrubP3rNAGcsRRfiUc= Date: Fri, 2 Apr 2021 14:47:10 +0200 From: Greg KH To: Fabio Aiuto Cc: Dan Carpenter , joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/16] staging: rtl8723bs: remove RT_TRACE logs in core/rtw_xmit.c Message-ID: References: <72ab5222629f912ca2dbe825d194108992d321e7.1617356821.git.fabioaiuto83@gmail.com> <20210402115626.GV2088@kadam> <20210402124045.GA1420@agape.jhs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210402124045.GA1420@agape.jhs> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 02, 2021 at 02:40:46PM +0200, Fabio Aiuto wrote: > On Fri, Apr 02, 2021 at 02:56:26PM +0300, Dan Carpenter wrote: > > On Fri, Apr 02, 2021 at 12:01:21PM +0200, Fabio Aiuto wrote: > > > @@ -568,20 +561,11 @@ static s32 update_attrib_sec_info(struct adapter *padapter, struct pkt_attrib *p > > > if (pattrib->encrypt > 0) > > > memcpy(pattrib->dot118021x_UncstKey.skey, psta->dot118021x_UncstKey.skey, 16); > > > > > > - RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_, > > > - ("update_attrib: encrypt =%d securitypriv.sw_encrypt =%d\n", > > > - pattrib->encrypt, padapter->securitypriv.sw_encrypt)); > > > - > > > if (pattrib->encrypt && > > > - ((padapter->securitypriv.sw_encrypt == true) || (psecuritypriv->hw_decrypted == false))) { > > > + ((padapter->securitypriv.sw_encrypt) || (!psecuritypriv->hw_decrypted))) > > > > You've done too much clean up here. Just remove the { but leave the > > == true/false comparisons. > > > > If the patch is only changing five lines or code then fixing checkpatch > > warnings on the line of code you are changing is fine, but in this case > > you're doing a bunch of changes and these sort of cleanups make it hard > > to review. > > > > Ease to spot that the curly brace changed: > > - ((padapter->securitypriv.sw_encrypt == true) || (psecuritypriv->hw_decrypted == false))) { > > + ((padapter->securitypriv.sw_encrypt == true) || (psecuritypriv->hw_decrypted == false))) > > > > Hard to spot: > > - ((padapter->securitypriv.sw_encrypt == true) || (psecuritypriv->hw_decrypted == false))) { > > + ((padapter->securitypriv.sw_encrypt) || (!psecuritypriv->hw_decrypted))) > > > > regards, > > dan carpenter > > > > thank you Dan, it's a good tuning process for me. Shall I resend the > whole patchset? Maybe some of them are ok... Yes please, you do not want me to pick and choose individual patches out of this series. Our tools grab the whole series at once to apply them. thanks, greg k-h