Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1442750pxf; Fri, 2 Apr 2021 10:33:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVmjCwcaFtwdoGeWmV8luhbbjVjEPRpmI2303Frzvy0EUxbPD9poInR0wJHwEmJWrSgTFi X-Received: by 2002:a05:6402:1754:: with SMTP id v20mr16223721edx.191.1617384805558; Fri, 02 Apr 2021 10:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617384805; cv=none; d=google.com; s=arc-20160816; b=zCMytNgJ7u3bPma68R0RNOCkLZ4BT5CycAzLpFV9ZQpzpGo9UlLq2lQ+PjAOxZBDom FTRyZCWHYwaAe7eZHY01UwlZezVcgkiJquasHe5COc/yQWeldsdsGKT3fSiOn45iFY4Q S0c1aMrW9qMB8ofHoibYmOs2JHIAG5ScDjhmUIXQ09PbMGaRDMz2/wrq3kthKzLZIzwj 898Yf4zNmtcu0Ze2HdSsnYSpqD6JfLdW8MVPJQyHLdc2Ho9gSjWN4+YwKcaDoKYWXqJR Ue1VyKZivO0Zlqa9T0/ulPolndy7jXe8JFOqqr/cAufFTk8qkNxchkCpcw0gmYKjPAMR 2lFA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HW8zP7DoM2YfAVkpuEz006Zh/rGoWUODHC32UiI5NeU=; b=G7itloPNPijGOEhWmtup/ndQSYEQhf6dkerxtuFgrrHEzwT3eqRoLfgrzHr4Ema43w Hrx+esbTjGtL3BB9pCXyz4MrT7MYUhMo9XKBNnlDHT+gXsynK14CXIkw1LOhTaI3x4zM uFqjilZ+bB96Vc2kUz0xKeh9iCA2lCADQKX2ABd7fNSQs0Yegnl7bapCEShuEG12WbzY 2FPAqE2jFjYSdJKR+Cpc7s10c17u291IiRCa8qdNZJflTdAlPnWoflsghl4W8pF4cwDC nKs+xFE+7iNK6x2zH88wTBYoOwfJuQlEhqMWrZKmP+gOl7f0PBRjRZldzAy/Yu6pZHfN uJ1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LBQDvdQO; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si7352058edc.279.2021.04.02.10.33.03; Fri, 02 Apr 2021 10:33:25 -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=@gmail.com header.s=20161025 header.b=LBQDvdQO; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236330AbhDBRbl (ORCPT + 99 others); Fri, 2 Apr 2021 13:31:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235938AbhDBRa5 (ORCPT ); Fri, 2 Apr 2021 13:30:57 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1440C0613E6 for ; Fri, 2 Apr 2021 10:30:55 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id v4so5273722wrp.13 for ; Fri, 02 Apr 2021 10:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HW8zP7DoM2YfAVkpuEz006Zh/rGoWUODHC32UiI5NeU=; b=LBQDvdQOdjzGKgtB763p2eI+OHAjKW5vCaTn21nn2gP5+n2DeNmtK/TPJyJUHqWqII yHXruJzoJs+IR/VLnM8cmmXd583OVLj95sIyEuGfkiCrnCeuxomNpMVWosbhIGhpstbl w3+qyymujACljzJP/4QAMsQBT6LerbJHKJrb2C1V16chEPYXKSkN78UqNWa0GUzga2Wp T7mL3XBUw3Msrc70kfka9nmZnf7eTvzuDLtsNGWfUg9uroMKhqVEK/RenxnX3D0yfbfY X8Ew2be6gkz/oKNmb2R/BGywMNveIDU5vabpMMf4WP/PFlhWwCFsnfJ+iQ55Fgyy0ymx OJiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HW8zP7DoM2YfAVkpuEz006Zh/rGoWUODHC32UiI5NeU=; b=XffbRyn7KjEXl0qrz2wHYKY/4D2UgvAvjqQiLJKGjQTN8GOEKJY3j3VnVcaO7Jj/XM grRDDSEC3ctFw1U1NUO0Qh06jhk6J3Lf1jYBfKV9xxff0EJuOnqJQdcCjH91aW5G5l0v NANyH8eQf1oCoJFuXJpvZrVcCS3OmxH2JtzIq9R8Ri0QOoQ46bamFi1Tjfl8GVrdKCOJ 395UJCX0HbtbrbzTtCS6+izdmM3p6Cb+Y3tbvXe/paDXrV5M3QvThkVMFvag9nQAVZue yIpV2wjZQBE0ENydwyxv6Uu9iXRp4tLoVCtWqE+nji2ChSIfQoTbMDhCtjZmjaEiKfkh rpXQ== X-Gm-Message-State: AOAM531icm7SHI6lv6m21xR7s8/0oO0H+GB9+2fcPwBJ81JuYRF0bVTz pgFwaP9cuNzgewRsGM1Ty2I= X-Received: by 2002:adf:e541:: with SMTP id z1mr4091602wrm.383.1617384654730; Fri, 02 Apr 2021 10:30:54 -0700 (PDT) Received: from agape ([5.171.81.4]) by smtp.gmail.com with ESMTPSA id f7sm12130341wmq.11.2021.04.02.10.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 10:30:54 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH v2 23/30] staging: rtl8723bs: fix comparison in if condition Date: Fri, 2 Apr 2021 19:30:05 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } -- 2.20.1