Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1481644pxk; Fri, 18 Sep 2020 13:49:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYgJL3YjWhCsCZeG6EJvNYYOpQ07KFy8QlWxe0NB1H8Sp/ehIGDS/mYAy0syFUb+SDi7Wa X-Received: by 2002:a17:906:3553:: with SMTP id s19mr36723846eja.178.1600462162589; Fri, 18 Sep 2020 13:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600462162; cv=none; d=google.com; s=arc-20160816; b=Wt1VAm938eEdoXpTEexKSutRbBO8kHO3+xRGNTxDkA0QftOrJmeC+MqRo3sXfwMbGA 7hKJQFc46pizVKcG+fY9P/UJwveomFb1LSi6k59dc2qKqVtuzQc8mm/EXoZlvPPeuhUs kBc9Q3mawq4Vf6REOD6CEjRK34c3fqWSZedSGdlGV6Quq/y6em2hiuzwXShmpuytsMKB EROKkCnWcp8uV1H8rexL/XyD7dX9m9US0pYnDpd9V90EGiIEPtzLPZfpc0Bia9TBxq3z bbwNXAY7LNAoGvMNIDvtYamliIqBzYCPlSvNVczZP1H0REwWJf+YXkyyQHXI62nBrmpv 2M4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:sender:dkim-signature; bh=QuS7zvosncddlCOfGTkwVqUYuL8rUA4H88/9PFOsvFE=; b=S8cXc9Tz2RNV84xLfSfiJxcrsLbQfbOF7Lb2wmMOfupHFubrA0r020Wz1ss0zlHfXZ moMyZ7ltzZQjFThO4m3E9SYjhqU+pOpb7kIYwxOdc88kUkgiYqZKqG/Dap0VGI/Qnbqm bO+nlWBm8Z4fQ9IuMNvN2qXwcaxiPiQ8M5WNVAjk6fIEgp0BBaA6FHz+0gGvaH7CMPjw 4T1QED/ZzSwwTttfbn67BecLJG9gl/KLoFYuVvMPufwmSQrtiD+q+jXIe2EOWc6WLSq6 LfJRdI3nnQSnW2hlnmVJVcbfGu065cJg0mIxNFOv9XMfiYFB4VoLJvyxuUuMIZr2vEks VYZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rJICutNb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si2946224edc.249.2020.09.18.13.48.48; Fri, 18 Sep 2020 13:49:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=rJICutNb; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726471AbgIRUr7 (ORCPT + 99 others); Fri, 18 Sep 2020 16:47:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbgIRUr6 (ORCPT ); Fri, 18 Sep 2020 16:47:58 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86270C0613CE; Fri, 18 Sep 2020 13:47:58 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id v20so8602285oiv.3; Fri, 18 Sep 2020 13:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QuS7zvosncddlCOfGTkwVqUYuL8rUA4H88/9PFOsvFE=; b=rJICutNbgeIyEFdxYfNRNT0KZiaUoaX/jxpRIiwGcE4weCVuoiAIgrdeV4sgNNju5u HDDda9Jlil0eISamLoStJYFSQ0PUp5Kh8UkyDn0e/Amw9hRUgNvUP2nH62zCffPMhcCp NuD6sll65gFGEJcnSWEq5KooXY+UPAiBZWJk/t8YqvZXGfgM7YNWP/mAagDy8uEW12xS MCGO32oMx6FVuDgrwJJx6pPBcUQDFjbLLmdc/SE779lb8KWEEG8YwkYHVN4MZS0RCumY HkQuE5+qn8CRojGg0bq2F38fD6aV6o3/B9PdigPb9wN+5ZY5/LEJNmFj+aLeoLtUm1kH tydg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QuS7zvosncddlCOfGTkwVqUYuL8rUA4H88/9PFOsvFE=; b=sc6w3/JX+ryNbEiJSbkMEUDVHQMJ3gTELxaoE+SYgOvCgl470amQVF04C/i84B6ywY s4MUhQBZAHteNVJ42bHv7Pj8OkgyorPAe57k76Ku6w7DucOwYC4X0xraCfBiDaCt+UP5 Y3J2navOOu5tZOpAEbscIZaBI/ApI3zrkxz4Pq8LoHrSaD90nEI6GDoWgBe3ya0g5FHm Cp/0NQ6xxZBc/trIWdHx9Vgh4g5CLLXFGtV5EiRrCU4MQa6HgZTu761M1v0xT9KrEUpp xhHpwJpaQyMjLqCxYp3MfQKuMqg3iBAIkre5EaD4b+HegRb8ciTzsOWuZvm7ajb9V+6R NTcg== X-Gm-Message-State: AOAM530+/4d3IJ333Ce0C2mbMFHJ0Y0CHgWFA5jRvuPoKQ8+1cHq5Aco wTiIlNt+tBbPa9K3H8DAU6A= X-Received: by 2002:aca:5903:: with SMTP id n3mr10911799oib.159.1600462078020; Fri, 18 Sep 2020 13:47:58 -0700 (PDT) Received: from localhost.localdomain (cpe-24-31-245-230.kc.res.rr.com. [24.31.245.230]) by smtp.gmail.com with ESMTPSA id y7sm3470024oih.51.2020.09.18.13.47.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Sep 2020 13:47:57 -0700 (PDT) Sender: Larry Finger Subject: Re: [PATCH -next 4/9] rtlwifi: rtl8821ae: fix comparison to bool warning in hw.c To: Zheng Bin , pkshih@realtek.com, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: yi.zhang@huawei.com References: <20200918102505.16036-1-zhengbin13@huawei.com> <20200918102505.16036-5-zhengbin13@huawei.com> From: Larry Finger Message-ID: Date: Fri, 18 Sep 2020 15:47:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200918102505.16036-5-zhengbin13@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 9/18/20 5:25 AM, Zheng Bin wrote: > Fixes coccicheck warning: > > drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c:1897:5-13: WARNING: Comparison to bool > > Signed-off-by: Zheng Bin > --- > drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Larry Finger Larry > > diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c > index b2e5b9fda669..33ffc24d3675 100644 > --- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c > +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c > @@ -1894,7 +1894,7 @@ int rtl8821ae_hw_init(struct ieee80211_hw *hw) > } > > rtstatus = _rtl8821ae_init_mac(hw); > - if (rtstatus != true) { > + if (!rtstatus) { > pr_err("Init MAC failed\n"); > err = 1; > return err; > -- > 2.26.0.106.g9fadedd >