Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp83579ybz; Tue, 21 Apr 2020 15:48:13 -0700 (PDT) X-Google-Smtp-Source: APiQypIrxqZ0dv43GUV+8JPdaS4ldorDnhHEBwXiunWOW6+6KZiNs8wwjH7JFg9BlrXqGuUzzqY/ X-Received: by 2002:a17:906:cd0d:: with SMTP id oz13mr23473496ejb.82.1587509293690; Tue, 21 Apr 2020 15:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587509293; cv=none; d=google.com; s=arc-20160816; b=wKTl+sX2RdglDW2F1VuEgGT3Vlb81dVlzR+7nxSoHAZp41ic1pKNnj7gumf9rRaDoJ 1OjHFJHU2Ptp6ZLdDtiVcbV2WRqrUOsbzkYkzWcY0lpGzbCdDpRAXJ0DF/eWWqMwxYEC 2qsZSjlIjWNh3POO98NKMhKzV4uXoQbsgyyHu1Sa4Qgf6ltRTuJnxK1s9i3Py6cNS1Zi hNIfX8mbmGcoOj0gUE7NNsehp/RP1Np0par8AAgsml+92HeiBL4reMzR78tLvxhVNRdR r+cAEJ6F6jUDiWdxTcDk6boMng+D5w8pKcP824G4B5NOBNKKAOcatAq1NOACctRno0KR mHmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=6DmR4jay50o9kAyB6tPIFp/PVFCJJW7x1PWn0HWM4uI=; b=EQ5y9/sAXBVT0Dv5wqnvfJqA6Y6b+wJzJGTw+cDfWSUNbwUOj6v0BEAwo9v+C2g0XC 08s6OuD6laMX3d/TViDlHUyJjoESzvqbRlB6SsAJgRf2FJy2gBl7MXGwL7HL6JcEfn2k 3hfOjkj8O+qvXeA4KjDW78BPUXLr0XJbld3KyLwNa6aXeZxwyU9zl4E/sV8vFbwlBHTs uDpLACeeweMeNuQCGr7wdX+JrDHN4IUDiXYR0mEozB4zMnD0gs81i8EZNZKStBzYa0xv HUjk51UOb4UyS9/f2mBaw55tPW7u1bJteaEscZuHf7PS5jCzs50kuFFOM5+raS/zdbj2 kJUw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si2383719ejz.458.2020.04.21.15.47.51; Tue, 21 Apr 2020 15:48:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726390AbgDUWp6 (ORCPT + 99 others); Tue, 21 Apr 2020 18:45:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726067AbgDUWp5 (ORCPT ); Tue, 21 Apr 2020 18:45:57 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBD0BC0610D5; Tue, 21 Apr 2020 15:45:57 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 93CE3128E9282; Tue, 21 Apr 2020 15:45:56 -0700 (PDT) Date: Tue, 21 Apr 2020 15:45:55 -0700 (PDT) Message-Id: <20200421.154555.572490249375777103.davem@davemloft.net> To: yanaijie@huawei.com Cc: jeffrey.t.kirsher@intel.com, ast@kernel.org, daniel@iogearbox.net, kuba@kernel.org, hawk@kernel.org, john.fastabend@gmail.com, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, andriin@fb.com, kpsingh@chromium.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH] i40e: Remove unneeded conversion to bool From: David Miller In-Reply-To: <20200420123448.7382-1-yanaijie@huawei.com> References: <20200420123448.7382-1-yanaijie@huawei.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 21 Apr 2020 15:45:57 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jason Yan Date: Mon, 20 Apr 2020 20:34:48 +0800 > The '==' expression itself is bool, no need to convert it to bool again. > This fixes the following coccicheck warning: > > drivers/net/ethernet/intel/i40e/i40e_main.c:1614:52-57: WARNING: > conversion to bool not needed here > drivers/net/ethernet/intel/i40e/i40e_main.c:11439:52-57: WARNING: > conversion to bool not needed here > > Signed-off-by: Jason Yan Applied to net-next.