Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1845507pxf; Sat, 3 Apr 2021 02:15:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0eyCblMzAH5GpSaZ3Bg9jHfEInQDXOE1QnJ7QC23S6G+pk6IBYLbo5ZeYdi29Id6q7YmS X-Received: by 2002:a17:907:2509:: with SMTP id y9mr5954125ejl.170.1617441322033; Sat, 03 Apr 2021 02:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617441322; cv=none; d=google.com; s=arc-20160816; b=WR8a8cTqp/syuFNQOXWrVEwtfxOQOWm6J1Bkhg9HkO7XxkJ24JVKtMkHNm+TH5wMDt Mpn74nah5Z5uufI2qHQHO1H4CXeVE2NhTmf7gMw5gItsTA3MR0vCaES7oAcmgrriXxpU 3iux4DZ9P6yCUFSs0TL1/zGVtU6zhznuSXO43P6RmNX9zoMNug5zOGgws+r/nczPIxqT +xW4asah+4gd6RiXnqjeI/vvsrTpVut/BgoI4yCQymLd0wiU2oKbFlUmvDa+0dqLPKiz /EAnLCbSAiKw+f4inemlLN0cxBFGn51n4e1bOFILtlJnFA9BbmTy0tcFHBwock8Sp2Ji VBRg== 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=eVLSD6TsWDnyVwfKOiwMsJMVRC8hKmFN/FvLWADHKVg=; b=mKT/ylgGNZPF2sjW8Gnb13l/8x/v90IiWNVQq6PeXbtYr4cR8lO3E4lfeqsQ/QbJpe 1DZAHHd0s+poHLGXjX5pQBhgxPSzs/IEbTOD4lvZMK8LBYzBkxMsCkjLRiASMTX0g4WN xNhLTskV63ixn7C0SAncNzeTra5tWDfsUdI9VK2ammJ+6rMLLueRfnyGcWoG5JrP9+ca XJGNrAqpLeu8El6vGhBbm47lbmg7NdT+oWCD1XB93p+x04feLRYS3jFo2BqqNyZVuHJM pIogse+ua3P+/7Q08jn5JogPYsPgqbXYLqzYIzAlwQ1Z7wU7pUdhUTgrZlQSwOKwWP/r uOlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jYcTywjp; 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 hr14si9129596ejc.394.2021.04.03.02.14.56; Sat, 03 Apr 2021 02:15:22 -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=jYcTywjp; 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 S236149AbhDCJOX (ORCPT + 99 others); Sat, 3 Apr 2021 05:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231575AbhDCJOW (ORCPT ); Sat, 3 Apr 2021 05:14:22 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A61DDC0613E6 for ; Sat, 3 Apr 2021 02:14:19 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id x7so6524724wrw.10 for ; Sat, 03 Apr 2021 02:14:19 -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=eVLSD6TsWDnyVwfKOiwMsJMVRC8hKmFN/FvLWADHKVg=; b=jYcTywjpI9wRKeO+xDLAdA12Ly6M/Tuf0eNBRqpBo6wo9G1JQzI+V1DlJ1I3UHRexb qPA4qjAPHcZt31j8I5tNwaLVMxyyUeRy6P2I/JgMXcPktpIc67AxYMvJ8ICtQpCTBxYn scCE9jdVnHieBRRjgc5QWt8VQc9W3mVjo67NC/Zg8xAn6p6+n4u/pVo6BaX0jwyQYmhb Z7Frm8Cg1h2pQEec1+jWVCgcf0JoXS2Gvs0LBZM5SIN9fQFn2GixLVwl/srJbyKbEt7A fehIpn2wLz90YM6NvaK74lfjYDPvXBPDAKCDvB9ebrWuHVTUcV04/FqLJuq9W0UbIUIc ifDQ== 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=eVLSD6TsWDnyVwfKOiwMsJMVRC8hKmFN/FvLWADHKVg=; b=b1t02aZnvUtiZ5emG0JXG1AxVvUDNxMdzcG9Uo8lV5PLZOQD1OncyAQXvOhZxRjFHV osuGwWwm1fduAEB3R+tLcdxcYkY1H+qploDER9hebRCFo+J9iPsX/KXtAV3iMhYUkZdE V8gQrGLAFPvjjUyqFWeYani0fmFYslscdFJBeTdFoUDQTHGXNVleR+5kN1OA7gq/9St8 8zC0H0eao1ARxZFC3Xd7DLsXDQ7kRys5lVjd2UqZoWukROdQwV0HD9TcCd2X/MB0tYkb cvCCxPHQCJiidub89WSVNCkBvAHPcdQWcVcFadSDU53bGpm/PksqJCzjss0PSb0TPmwP aJBg== X-Gm-Message-State: AOAM530di79fbQbgvsdPD8wsUEKGYe1oCRLtCcF23OElt1QpP7Cy/BAu n7xxH1LZlKGuZpA601tlPJQ= X-Received: by 2002:a5d:6a11:: with SMTP id m17mr19876883wru.361.1617441257573; Sat, 03 Apr 2021 02:14:17 -0700 (PDT) Received: from agape ([5.171.72.64]) by smtp.gmail.com with ESMTPSA id w3sm679711wmi.9.2021.04.03.02.14.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Apr 2021 02:14:17 -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 v3 02/30] staging: rtl8723bs: fix condition in if statement in core/rtw_xmit.c Date: Sat, 3 Apr 2021 11:13:24 +0200 Message-Id: <45793b555f46312ea3c9cd285886dec22f3a1131.1617440834.git.fabioaiuto83@gmail.com> 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 hook checkpatch issue: CHECK: Using comparison to true is error prone 71: FILE: drivers/staging/rtl8723bs/core/rtw_xmit.c:565: + ((padapter->securitypriv.sw_encrypt == true) || (psecuritypriv->hw_decrypted == false))) Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c index beee87db85a5..957d7e3a4d4a 100644 --- a/drivers/staging/rtl8723bs/core/rtw_xmit.c +++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c @@ -562,7 +562,7 @@ static s32 update_attrib_sec_info(struct adapter *padapter, struct pkt_attrib *p memcpy(pattrib->dot118021x_UncstKey.skey, psta->dot118021x_UncstKey.skey, 16); if (pattrib->encrypt && - ((padapter->securitypriv.sw_encrypt == true) || (psecuritypriv->hw_decrypted == false))) + ((padapter->securitypriv.sw_encrypt) || (!psecuritypriv->hw_decrypted))) pattrib->bswenc = true; else pattrib->bswenc = false; -- 2.20.1