Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp700667rwi; Wed, 26 Oct 2022 06:17:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7I/8yoozoy7WSCebZy4zXEPgU46+RUPXDC5Tt9u8x5ttex5mOZFhHrM6WgmXPoo5Bu97a8 X-Received: by 2002:a17:90b:2686:b0:212:e69a:8c61 with SMTP id pl6-20020a17090b268600b00212e69a8c61mr4254241pjb.71.1666790232858; Wed, 26 Oct 2022 06:17:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666790232; cv=pass; d=google.com; s=arc-20160816; b=wGqfUodW7J/It1MzHOagbJKQc1r6eZDSmmE2iOABBIapJeQEYKQHu5T3L1rkvHbV1z b3PaKXHv0BCXq+QWDuykIMWJJsKKjZvyEnySH/ozTdGMQNjZzkHHmpM5scZ0D7O0ckbw o0vt0jX/9m7Ni7hAcoMpzNFpMSjGWmW54Dl0IkmWMgIK1d+IyjxRjuKm8S9A7tmLqnye ovVp01DWXKcdWaTx+yISjgcK8BozgU96h5YBcq5j0dZipuQVuFThnEaQG4b4WEhbxQ+r Y+NC4XI4Mu6SCT2lbRAH2cjZVxGR6MqwrmM9T1eBCVEs4RThq3PxWgCbSZaRhPu+j7tT 7JHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NhEnCBIWiWhW0byYC8XES1kb52GQs7ocwSW0WqCzYhU=; b=fSPKZNd8/QtzgzWGmzMzNftXwKmjCyrSCV7+tSMCIVKzzm2dkXUP5qR/teeLTql1Wz cOyyGKhy4mYYaUAkrSrxcW7U6PZ8OjgQiRk+EU6EY0vCcGWLvFySb9p0weOgq+kcPvE9 ik+/C6AW7jwl6LgRZDy+wgREc/U/+atnR2U2dwPW87ECqzffrVBi8ZIfad530FnnmRw2 wjSH1yXkyBfKTQDNJ018+iMA+k32HIyzyGQpnlnw4ECsxau/apzMqq/dkVADwFnNJ8i6 elf4rZwnvXKpIPZ9GUhvf3ormblIKWGeMqLxJjNO7Pul+bcbKf5RZZEhMwAr26EDOmql mRZw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zohomail.com header.s=zm2022 header.b=KREsLJTu; arc=pass (i=1 spf=pass spfdomain=zohomail.com dkim=pass dkdomain=zohomail.com dmarc=pass fromdomain=zohomail.com>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=zohomail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u25-20020a62d459000000b00554245aac47si5946882pfl.283.2022.10.26.06.16.56; Wed, 26 Oct 2022 06:17:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zohomail.com header.s=zm2022 header.b=KREsLJTu; arc=pass (i=1 spf=pass spfdomain=zohomail.com dkim=pass dkdomain=zohomail.com dmarc=pass fromdomain=zohomail.com>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=zohomail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233067AbiJZMoM (ORCPT + 99 others); Wed, 26 Oct 2022 08:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233884AbiJZMoF (ORCPT ); Wed, 26 Oct 2022 08:44:05 -0400 Received: from sender4-pp-o95.zoho.com (sender4-pp-o95.zoho.com [136.143.188.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3834F95B2 for ; Wed, 26 Oct 2022 05:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666788241; cv=none; d=zohomail.com; s=zohoarc; b=QN5FgsdNhFnCRS91LIc1akmaEeCbcgyHzXjErDezIqawzV0F+aaazgd79hi41Y73rHxyqkYU02iTRcsPBx4/aD06+yhV7AP9aKy50I8vJcU9nyfKjMQ3zk2DaIo1z3V+uSxsC2xT3nsbzNpDWe3+fg0FKWyn8xJmGGhlJHHYf/I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666788241; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=NhEnCBIWiWhW0byYC8XES1kb52GQs7ocwSW0WqCzYhU=; b=dky9QHdmNKDaZRvMGqvVSC0P9sT8h8h98WHNxHqJ6+4ioBbuCQc8z9Scgc7ymzcr3+vHTz/bLrxk1M9fOGSeg/Z20PZuHOx+dC+RgtEHWbvoR008mRrf9iL9bkpBlYQrD5wmFiT9NuJdiepvT110Jh15eKYLHZQbv9Rj2ICJHo4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zohomail.com; spf=pass smtp.mailfrom=t4rmin@zohomail.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1666788241; s=zm2022; d=zohomail.com; i=t4rmin@zohomail.com; h=Date:Date:From:From:To:To:Cc:Cc:Subject:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To:Message-Id:Reply-To; bh=NhEnCBIWiWhW0byYC8XES1kb52GQs7ocwSW0WqCzYhU=; b=KREsLJTuBSGqOnc1o8WLJhi4ND33J/qKx8k2x3pg9Q/TQ8AyZFRSh4rXbc8tAcmT GJ1JTXY/+F4PDQ6I600+rcppd5k9cmYs42bqlVUHlP7JTB6yvaAJky/DHlahGLUq6YC DyoH9iVJooVktIgqsI5pU5IIQqSt1r2ckOFE2VEI= Received: from plymouth (103.47.132.12 [103.47.132.12]) by mx.zohomail.com with SMTPS id 1666788239134352.55749610584144; Wed, 26 Oct 2022 05:43:59 -0700 (PDT) Date: Wed, 26 Oct 2022 19:43:51 +0700 From: Aaron Lawrence To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] staging: rtl8192e: rtllib_crypt_tkip: rewritten comparison to NULL Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ZohoMailClient: External X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rewritten a comparison to NULL with a negation operator in accordance with the Linux kernel coding-style regulations. The fix was directly recommended by the checkpatch script. Signed-off-by: Aaron Lawrence --- drivers/staging/rtl8192e/rtllib_crypt_tkip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c index b8a52b9f9d07..9fdfcc017ee6 100644 --- a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c +++ b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c @@ -62,7 +62,7 @@ static void *rtllib_tkip_init(int key_idx) return NULL; priv = kzalloc(sizeof(*priv), GFP_ATOMIC); - if (priv == NULL) + if (!priv) goto fail; priv->key_idx = key_idx; -- 2.38.1