Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3048308pxb; Mon, 16 Nov 2020 04:34:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2HHpQ2Y9II8FT8Q4NUmsKRJm2zI8HvdVRwJ9jlmp1A1xYaagzvnZvcWqmCCZe0ylrrDaQ X-Received: by 2002:a50:e041:: with SMTP id g1mr15531924edl.385.1605530072363; Mon, 16 Nov 2020 04:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605530072; cv=none; d=google.com; s=arc-20160816; b=rwjFZn7elI3vQ+UZeeUggZFas0E612L4m4SgqmPkuPrvemHDbGXjDN7YLgPetvplzF mw/QEWgxXrzZJbQltnbE+RJH+8cMkvjmd9+uiRa4oui5vW9W6VBFZL//aZDneXorigIM +sV7xdd+/LPAVVkmlMA9Mr2ugCxynAerF0xSuKJNPWmDUUTqG/3NLrcyeUtcNBiT3QZw CKWP4feAQEkHxfGOlwFmFp8awD94w1aJNB+3UDvTQQ31aKYWS+AB8OBZQNLcmHrRPi3W zK/Gr6bNBrXfDqoukKyCEYU3mLcREptrjMpqY18dlO6iwu9zjMyp2JXaeTFN7dpih60h lklQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=MZ3hD4IqmLeqeEFblswky0kFaVBG09HKoW+2D7UDsvU=; b=Yw3Sa9mQXRvagpSxHrpq8UMvDBmIX/IaiI5SkLmmbm3wFXpU58wQjd13zBU8sBuVJ6 82Rya3laNlqrSvX4/cifyZh1XkyWKN4PY/zEbftLKeJSwTUSdQKs4aZAQI+jbOHyxQ9S WMfPLoZjtyp6H7zbFaxn0ljO9YfW4gIvQXa7vNY06VN5hYrivNu9/M9vQrRKmNMq/Lzm m3D25hRG2KYzSGAsiT4H5b4ThLHZHIsS0MJMB0+q0T0xVM85uqCLjB1HNH/tKaMJ9tqa RiCmVGxyD4EYvojmKVI+pOFnHnDT1xarqHMNr3AQTOZFkIWr2ac1JZf2nlRjypsyNKQN Y7cg== 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 a11si11298029ejx.432.2020.11.16.04.34.08; Mon, 16 Nov 2020 04:34:32 -0800 (PST) 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 S1729947AbgKPMaX (ORCPT + 99 others); Mon, 16 Nov 2020 07:30:23 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8092 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727895AbgKPMaX (ORCPT ); Mon, 16 Nov 2020 07:30:23 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CZT146fVGzLpLF; Mon, 16 Nov 2020 20:30:00 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Mon, 16 Nov 2020 20:30:10 +0800 From: Zou Wei To: , , CC: , , , Zou Wei Subject: [PATCH -next] powerpc/powernv/sriov: Fix unsigned comparison to zero Date: Mon, 16 Nov 2020 20:41:55 +0800 Message-ID: <1605530515-69328-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warnings: ./arch/powerpc/platforms/powernv/pci-sriov.c:443:7-10: WARNING: Unsigned expression compared with zero: win < 0 ./arch/powerpc/platforms/powernv/pci-sriov.c:462:7-10: WARNING: Unsigned expression compared with zero: win < 0 Signed-off-by: Zou Wei --- arch/powerpc/platforms/powernv/pci-sriov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/pci-sriov.c b/arch/powerpc/platforms/powernv/pci-sriov.c index c4434f2..92fc861 100644 --- a/arch/powerpc/platforms/powernv/pci-sriov.c +++ b/arch/powerpc/platforms/powernv/pci-sriov.c @@ -422,7 +422,7 @@ static int pnv_pci_vf_assign_m64(struct pci_dev *pdev, u16 num_vfs) { struct pnv_iov_data *iov; struct pnv_phb *phb; - unsigned int win; + int win; struct resource *res; int i, j; int64_t rc; -- 2.6.2