Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp417581ybj; Tue, 5 May 2020 00:46:08 -0700 (PDT) X-Google-Smtp-Source: APiQypKO0cNXQMhHOEmYzntedCbvGMSxvKOyV5R0woKsIbbhTFAvlqLdXuAwCVkA9G7ALm0FRysc X-Received: by 2002:aa7:ce17:: with SMTP id d23mr1466358edv.89.1588664768096; Tue, 05 May 2020 00:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588664768; cv=none; d=google.com; s=arc-20160816; b=m3mJAH3fI3Nq9l/0jtNIPCXQ66BsaKYRrxliK5cJKZqNayn7MAPo/czsy5obMFCWiA QoxqwjpYv/WDCcioMbTm2iJtzt+OKA6HdWEAr2yStnd62S9GFpZw0Gxotde5oXJv38pu MmHDwmww4lq3nnOn8VxdOmUV6J1Lg6+Rkz16BC7+Bjfx43PFi9ET6gIKbPjgTzqcsxQx /PCUhTjozoaaQ0c9j3lm6+OHQXljOZCc8xX2K/Tuo+RjmLaIIjUK3sq6m0msxcrFsm2M 7WFphhn7RfXKaCPsWo4hIAeUPC7D0Earh32yIxKNkdfs0qhtbtQFPyGhMksZ1TCKY21c tAZQ== 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 :message-id:date:subject:cc:to:from; bh=o7yYuEe1Mg6DBq5dBKGyOgz6I8FnPNpsjDuzwMqkodQ=; b=psNuwcAjUelXJKdQsVeHx+r6vNPNTOyUwzJhaZoRrROumsM6uJA+NyO1k1KW3IGI11 /197k9W69dq89KZP8pJWKQT5SQzqLLAIV3zbK0IbcaJvPXxiNncE968UZ8Z25xzqjAXb YTywDsDpd1uhbUeQ8XVdjvUNe3to7SBMOalkB6CtFQji0qIk3XZhvthfSV99+ZKOW3Qx fz9XKO1HP8CrkHCV31wrEfBxwwk4iPxtYMXzhQ87+DCPvk/1H4Z8di80TrCkL/aPR5fH c2rYClMYf94B9210J9BHjxAcGixjp5v+ht/raOoUD4igGvV988eSsy5Cqa7B63bzUWzu 0TrA== 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 l16si677589ejq.268.2020.05.05.00.45.45; Tue, 05 May 2020 00:46:08 -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 S1728461AbgEEHo1 (ORCPT + 99 others); Tue, 5 May 2020 03:44:27 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:56144 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725915AbgEEHo0 (ORCPT ); Tue, 5 May 2020 03:44:26 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 28354A8E70AC4AE36D1B; Tue, 5 May 2020 15:44:24 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Tue, 5 May 2020 15:44:14 +0800 From: Jason Yan To: , , , , , , , , , , CC: Jason Yan Subject: [PATCH net-next] ixgbe: Use true,false for bool variable in __ixgbe_enable_sriov() Date: Tue, 5 May 2020 15:43:37 +0800 Message-ID: <20200505074337.21477-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:105:2-38: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c index 537dfff585e0..d05a5690e66b 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c @@ -102,7 +102,7 @@ static int __ixgbe_enable_sriov(struct ixgbe_adapter *adapter, * indirection table and RSS hash key with PF therefore * we want to disable the querying by default. */ - adapter->vfinfo[i].rss_query_enabled = 0; + adapter->vfinfo[i].rss_query_enabled = false; /* Untrust all VFs */ adapter->vfinfo[i].trusted = false; -- 2.21.1