Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp880539pxf; Wed, 7 Apr 2021 14:02:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4BSVeOfPPJGhr4O/ud3tiPZ+Qi9Gpq9NBx9acpvVgK6zbMseiSTCfMtEcWCaYSJ4jB2zL X-Received: by 2002:a92:1910:: with SMTP id 16mr4232512ilz.201.1617829323243; Wed, 07 Apr 2021 14:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829323; cv=none; d=google.com; s=arc-20160816; b=Fj5+jNNJAlQqJ5FGYiuW6jHc6GM9iCBU5LZy+mXvrLhL3RtId7eD/JosUPjZ0VxxFo scOlB0TXhC0CBL6+isCpt3dxUIEVubqe13ff0H8vl6hU5NKmS3YFUmllu94VKqvWojiB sHKY03Ukm5fGLp4jMcYd7L8OoJBTTEW5I0mnutSBNlhJYOmQqxPQxixuxa5D/N3Lj5PT CTTx0q+UwN7cAUyMOsCZT6pOMtFURmzLtEvqyUj6um/TnDDgybckt7RI4Nvl58OZCx1r hDFnjypTFT7vVqN6UdcEjiGeZMRhJLIM58KLDzvFR/5ZkW2yQYOiEfoMS5LsFWE1FVre lHEA== 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=agWTThKJnzpXbfQJioyYRi1VTSU31768MskVIC2gqW4=; b=JNeIeXiwh0lkUfr6kdPnyQUfzJyeCzby+PlGsAsism+MJ923N+t8VcVoYS7itn9CaL A2R1brfv+vlUwkqKKC03fviP/HTljmDmW1J5IG8u6Q+JtShT2MWxa7iJ6fiA8PcoeFRQ y0c3N5+SYsJfVujz1olRVpNDrBmCH8EFIWmVzOm8v7ylb7MkUWsaLaCqPo5ovIkVnwC0 CKj6YZieZENkE7gaYIho31loejmwpcX9B88XPe5OJN6k1pcnLZnGGJ1xQqc/1XnzN+1z 0PI3A/YnCGVSFrUkXd6d8NWGmMAEqHyLBLw2GcltXWnacyOOqAI3R7DVvbzhjuGgqS6V KaGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jmtsFcqk; 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 h28si20469218jav.61.2021.04.07.14.01.50; Wed, 07 Apr 2021 14:02:03 -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=jmtsFcqk; 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 S1352640AbhDGNvT (ORCPT + 99 others); Wed, 7 Apr 2021 09:51:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352641AbhDGNus (ORCPT ); Wed, 7 Apr 2021 09:50:48 -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 EBBEBC061761 for ; Wed, 7 Apr 2021 06:50:25 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id 12so3575343wrz.7 for ; Wed, 07 Apr 2021 06:50:25 -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=agWTThKJnzpXbfQJioyYRi1VTSU31768MskVIC2gqW4=; b=jmtsFcqklHHmMrKwWd2iroaNilgCYrRb+1g4cmVaqB2uWDAGz3svccfiPd5VWa1pVl rCF4M5Vq/Rij8svJt/Jw+GUMin9bZDzUUYRrALhgqv+1ayIhb3pfsU4rFrvaMpsqywZS DwEvz/GPMuyuzxp37lEgmS+qNuMG87UqV2I+LTJPa5Zd4Vuy3/6BJCrhCUbC1N9EsoT/ mIq1x3g96qmIHdxNmhKJc4cpiTywL8l3TmGAMN0/q0UUqD1mT5z6vkWEOgtIi4R3Z1XO 7D0Om2+5p8DYtR8tE7Jv3qUZlhhg2cpU/vUTNSncWx2krAurdpJoOL2oP86wJ/KPEDYc B1/g== 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=agWTThKJnzpXbfQJioyYRi1VTSU31768MskVIC2gqW4=; b=KJxJZbEfL2A3ZxypbywaFjFfCT7+KzSf6c9qw3s6/gfes/YoclScd9glcHsGzrx/mE MfiXNjyN9P74oTgg8hIG8uql6hXXqPWGJnc4aH28mndAhPxvg/Scvxi+ytaHNVTi7cQ9 ofajoq68id4u60Woy8tmojLaYrZEw1Lu0WzgailYD1rvdC45/caO3ZdWfSl3jQ4rsMT9 LstqZvKSMDjbW9N1Y0YXodOYcJWDVV79TeuhWHp//HGkdeH4ZNmn3Lw1KZZ8Bak0YSAw T1vvzg0hIUl/wI0kBBE36TIoYIAc9tGs0KTCsb9CCw3gE/hbD/CALFqQBRx4vKUdFd2I BUIQ== X-Gm-Message-State: AOAM5315TktJJqAxQfJMbuMCE181wuNtB/U5ZF7maT6K1x3V6PD8CWX7 PIBawURb9cRS4Xx49K/4HMA= X-Received: by 2002:adf:f64e:: with SMTP id x14mr4572832wrp.203.1617803423995; Wed, 07 Apr 2021 06:50:23 -0700 (PDT) Received: from agape ([5.171.81.68]) by smtp.gmail.com with ESMTPSA id k11sm8714212wmj.1.2021.04.07.06.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 06:50:23 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 17/19] staging: rtl8723bs: fix comparison in if condition Date: Wed, 7 Apr 2021 15:49:41 +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 following post-commit checkpatch issue: WARNING: Comparisons should place the constant on the right side of the test 1833: FILE: drivers/staging/rtl8723bs/os_dep/mlme_linux.c:151: + if (NULL == buff) Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/os_dep/mlme_linux.c b/drivers/staging/rtl8723bs/os_dep/mlme_linux.c index f5c94509ad71..0a16752f805b 100644 --- a/drivers/staging/rtl8723bs/os_dep/mlme_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/mlme_linux.c @@ -148,7 +148,7 @@ void rtw_report_sec_ie(struct adapter *adapter, u8 authmode, u8 *sec_ie) buff = NULL; if (authmode == WLAN_EID_VENDOR_SPECIFIC) { buff = rtw_zmalloc(IW_CUSTOM_MAX); - if (NULL == buff) + if (!buff) return; p = buff; -- 2.20.1