Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2027583pxf; Sat, 3 Apr 2021 08:25:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8ORqMbYxomIDpZC6CzmmJGmr3ttf6DnUPkYyEdXiWmo1CdIq5qGWNhzsHyZ1UjXaKXYq/ X-Received: by 2002:a17:906:4805:: with SMTP id w5mr7097645ejq.545.1617463518319; Sat, 03 Apr 2021 08:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617463518; cv=none; d=google.com; s=arc-20160816; b=KidnSdGpdpCcS/cK9DrP8ZLfIS41xz+Bsp7AvU94JzRXRX+FDFex+qiKH3cu3jl5Mv GD5MPVDcr3RDO5ck+TtR9/dQSLDj9S1FPq/OA0kTxbOB3ordfZ0tln+NilHOSKhlPVjR yTwVYRNfY+MhqNdvFjffAnccFpAi+tZNmV0oRb/ATq+OXSZ2nxXbn4+C5OQydmKnO3Jo K93FLwx1ZHLC2I++OSduFwrW7iDvXswewWjgEBONXUZhV1tM+tA5klI88mJ9XDP/0L5Z 0y96TvMGWVFM18CqqJLDgngV35Y/qdY5phS3d1WXcH9/oJwNnnTR7rrB458rC/y/toZW NQxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=H1Yw7w+xBJ1nxZcSQzOMvKRmcCyNAsdW6YjqARv9sUc=; b=JyW02Li/VwTCisv4cYh6zApeyApaUDlP0QAcw07OHG/pFZSgrRbEEukaOhA3Fb3hsk dzr5RTdFR8xvmu5u6xwAbOhU5EtBm4m/z5jDrEVFtkSbzE5dJGafiU35eV6kglKg/0F6 Yad1tKIzE1NoOvPFoXhZ8DP7ERwIsqemHKohrvM44CFQZLjtMXZ+qcUACihXEjEiq+EN QxYUPbalIQ6NLViHA+0xgHzH38UDfF9VyUzYw3G6E6IUbQ6LnV9szqw8Q6SIRAeCpwsK CsCV+dyIAiIjaHpVhnITdTz8Ui3QKMy0nT5IIZALnLCFZDHaSdWyo2/gf/n9+Hldg7zd KD6A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si9491593edw.146.2021.04.03.08.24.56; Sat, 03 Apr 2021 08:25:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236792AbhDCPYT (ORCPT + 99 others); Sat, 3 Apr 2021 11:24:19 -0400 Received: from smtprelay0127.hostedemail.com ([216.40.44.127]:60986 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236621AbhDCPYS (ORCPT ); Sat, 3 Apr 2021 11:24:18 -0400 Received: from omf13.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 2D0F118026B23; Sat, 3 Apr 2021 15:24:15 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA id 341331124F5; Sat, 3 Apr 2021 15:24:14 +0000 (UTC) Message-ID: Subject: Re: [PATCH v3 23/30] staging: rtl8723bs: fix comparison in if condition in core/rtw_recv.c From: Joe Perches To: Fabio Aiuto , gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Date: Sat, 03 Apr 2021 08:24:12 -0700 In-Reply-To: <5acf0d9573f2d9cd5d249f928fbfeee010f5f3fc.1617440834.git.fabioaiuto83@gmail.com> References: <5acf0d9573f2d9cd5d249f928fbfeee010f5f3fc.1617440834.git.fabioaiuto83@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.10 X-Rspamd-Server: rspamout02 X-Stat-Signature: zt1nspw3kad7tm9qeokqwpacs364i44y X-Rspamd-Queue-Id: 341331124F5 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+w7r9xgpov50X4YYjx3W+YPKMYulw10ZA= X-HE-Tag: 1617463454-954665 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2021-04-03 at 11:13 +0200, Fabio Aiuto wrote: > fix post-commit checkpatch issue: > > CHECK: Using comparison to false is error prone > 27: FILE: drivers/staging/rtl8723bs/core/rtw_recv.c:381: > + if (psecuritypriv-> > bcheck_grpkey == false && > > Signed-off-by: Fabio Aiuto > --- > ?drivers/staging/rtl8723bs/core/rtw_recv.c | 2 +- > ?1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c > index cd4324a93275..21949925ec77 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_recv.c > +++ b/drivers/staging/rtl8723bs/core/rtw_recv.c > @@ -378,7 +378,7 @@ static signed int recvframe_chkmic(struct adapter *adapter, union recv_frame *p > ? > > ? } else { > ? /* mic checked ok */ > - if (psecuritypriv->bcheck_grpkey == false && > + if (!psecuritypriv->bcheck_grpkey && > ? (IS_MCAST(prxattrib->ra) == true)) > ? psecuritypriv->bcheck_grpkey = true; > ? }