Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp880651pxf; Wed, 7 Apr 2021 14:02:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztnB5hfM0BgVs0ytFz9B1+oMNlPjL7lZ95TWLlYLyxXdgzN7bx6TyjXbk5AbeVxuXKRaPX X-Received: by 2002:a17:906:f1d7:: with SMTP id gx23mr6047525ejb.109.1617829332156; Wed, 07 Apr 2021 14:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829332; cv=none; d=google.com; s=arc-20160816; b=EenTMT23Ydq76JbDoQc11GBR7j0Bkf1myrjfSx4EFbY4TFv8T6qv/518DH5Lvi/Hea TOdTdHbXDsnGnzaJAlXkMsQNlrm6dAe+5q1zzWp3yXrtlUfvc2IsglOpP8/ef/Cx0q6X gkPu6Iwh9s43VnvBfoDcjJVG/tT588AR8YgDTYaEIZDAXbLzFVVmeWvqQ2UNX1PAMjMH AUHoPHReqtGs3JlWN5oS+1kgaCX9ddffiIQ5Ow8mnH1wBNq+DW1YPYpuniZiVMOaf6wH 0IV9vubeO4d5jGd6pyob4AFvKS3ygv6uS17JrrVbQ1ElqAmpkhqgQvO2D58tWkAWrfDx Myvg== 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=JsWUwV7KAjqM45vzWaT6+SgSOJnPCweW1Y3r8QJzpE4=; b=D1YyGTgEPKxL4XpAfTLXRHVA93r4LSXjWyeRnD6gqKCOKJ3WY2+IbX4vMqhO2wEMD6 fKJMqn7bm/ai5M5m4f2domGP9BHvlWwuCKBIxGAR8A2MNUVzepYhEPhLX7yA7oi9INoT Qw1R+Yv6TMlEU34cJW0VIXwxCTcpKqrHZWv30VVhrx774iy7ZtZNT6mTEpbOeFbjsSu1 kGziERtiRkdH3a8/iuEaY9OKfDzlrDWGEGDi0aIWi6C/ztwsaisxtnrIAV7VzPWsqqGc WGUDUkvMKO5m7GtzQumqJqjZ8zVLdTN5TBwMMBlWsWgJE4pcL7RFSoGXDyJnt8lyCHKV JPeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aInYbfHY; 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 hs2si20395576ejc.566.2021.04.07.14.01.48; Wed, 07 Apr 2021 14:02:12 -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=aInYbfHY; 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 S1352647AbhDGNuu (ORCPT + 99 others); Wed, 7 Apr 2021 09:50:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347705AbhDGNuT (ORCPT ); Wed, 7 Apr 2021 09:50:19 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AE7AC061763 for ; Wed, 7 Apr 2021 06:50:08 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id f6so11986777wrv.12 for ; Wed, 07 Apr 2021 06:50:08 -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=JsWUwV7KAjqM45vzWaT6+SgSOJnPCweW1Y3r8QJzpE4=; b=aInYbfHYrC4Emn8AqHBaEY9mMpb5kEgClsYuxLEfC1iw1U0I5MNb3ykWb1qWZXnDI9 2soS6Zql2mvgXY9rTClq7xYJyPfbyBsnUjAgp+QKBMutWtIUz2dFF7k9uQA1vbZKeOdo Tj2tEix+7RfXuCyNb3cN1iiaIJ/tOnNGoeIzKiJ8U7Eoq9GnP1n8r0voesDFlMkqg5jF 1kyX2TOqE/7IXTJ2Yql2laRELQvjr7DY6xrjajfFQqfLCLdVodcXL5lKRM+tx/H7c0lR vcUzYeHWceMwGmlEcdxtjjHXZfm6+aRjgu7TQKCtLVpM45Ws7kUadAcniNf+ItMDzDwr OLfg== 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=JsWUwV7KAjqM45vzWaT6+SgSOJnPCweW1Y3r8QJzpE4=; b=tAm7PFfKuNzTCnd0BakXStty4fdBbGZQakAoy6GCxwaQxzHLRA6fSLPV41Jy4sIxZ8 cwgFg6iyYGmSSrmIGPt5/2s0IIte/xIPBMz3/Jm+up439mG9KKQDVUaaE/dEDdCMrqGP gw5nbUaZd99Vd1vk9EulaZGtxE7fIXxuac+RtxPeBRTt3sfKwjm0ULytm64qeV0qe5pk Ff4SHNt6oYiucr4c5amB+Q7+vuagTzCSyYdClSY8d+s9lLygmfyxLPLCbyjvfeX7K04g hb8dqwQVU8gIqQ8T2qAsEEGV4x/Y1yzUkDpfDBViLT4tSiaQeY6b/rEk2GE+rUrZugHC aXMw== X-Gm-Message-State: AOAM531OwyCEZa91sJ3rm5VxyVll2RYthn9K4pqfCmM9J6fjRLz2Ai40 OPLAy4scaxqcpif8cOWHMc8= X-Received: by 2002:adf:fb87:: with SMTP id a7mr4614965wrr.58.1617803407262; Wed, 07 Apr 2021 06:50:07 -0700 (PDT) Received: from agape ([5.171.81.68]) by smtp.gmail.com with ESMTPSA id y11sm18078310wrh.6.2021.04.07.06.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 06:50:06 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 07/19] drivers: rtl8723bs: rewrite comparison to null Date: Wed, 7 Apr 2021 15:49:31 +0200 Message-Id: <0c6d53c851d1b07eb0183108e0bad7b4f273f04b.1617802415.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 following post-commit hook checkpatch warnings: CHECK: Comparison to NULL could be written "!psta" 97: FILE: drivers/staging/rtl8723bs/core/rtw_ap.c:2115: + if (psta == NULL) Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c index 30afe9f4ceef..e7712391a87d 100644 --- a/drivers/staging/rtl8723bs/core/rtw_ap.c +++ b/drivers/staging/rtl8723bs/core/rtw_ap.c @@ -2103,7 +2103,7 @@ void rtw_ap_restore_network(struct adapter *padapter) for (i = 0; i < chk_alive_num; i++) { psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]); - if (psta == NULL) + if (!psta) continue; if (psta->state & _FW_LINKED) { -- 2.20.1