Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp573400ybg; Thu, 19 Mar 2020 05:05:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vswnawPWb5Bg/pesNeRcsluRurPlbBxQiWxkaVuUEJBrgvwRvtAOGYTr474iItKP3cg/r8P X-Received: by 2002:aca:ab4b:: with SMTP id u72mr2133842oie.26.1584619524890; Thu, 19 Mar 2020 05:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584619524; cv=none; d=google.com; s=arc-20160816; b=T+tZNtBuld3d4/03Hh74uycpVSc7wx8CQt3yt0AIz7qewZjObHflXlOAWh6V8TiVbi KJRsgmbvTPtCzz+dbIfYLU92vhW3ihEI9Nl+DpilZPsF0v3cCs62DNCuLxpftYmPekgL l6qOSENZAAePf3nMoWQ5Wi0aaM/ZOwCOGJseMvViNweGdk8PriUu7I5EuHXqNankhQuX B2b2SZjaUgL7NqYXDkyijobSnvLQ5bGv79rrJSV6uERGP2G2jZaE77ocpV50ykt7v/wc 7nKKysGnYksk3pSr58RWK4ane0lDanx6yJeWMgH+bPMyUhJUNLDcT0z37/t8L8y2SGP7 E1Fg== 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:message-id:date:subject:cc:to:from; bh=ApAv+TiVED/fq2DsLnF/BDMZjoJdS0dZt/BthaaSyiA=; b=DdoCxNStLzb5Qwv+KYuWPbXsEt4mW+JaPKpXJm3N2LSAQAvLVQxZJajPWi37qEcdLB tA19tWi26ACKDiPUK5NsSbirDyJ8iQXM4EFu18R6LEqwF6zYsc7MtxmUjXt95jU7ePPo 0h90s2eywOf7pIFtsCCqq3SmhAjhmXMLJ4QrsH1zeRbcxNRqQnd/ZhpU18t88r3/DyzL 3cNWfCmT3Ss8nbRZNWTwH4TEFKyOFpc0qGmE8BRwSvdZAFj3/tP4lGDEQ1VXImspqjGW AX4wQatc75NMB2/TO2T8505XiXtBcjDnB8pjI9aiAZaTplHEDik7Pp3Z9yen4koGrjR3 0zqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z204si1023574oiz.133.2020.03.19.05.04.55; Thu, 19 Mar 2020 05:05:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbgCSMEe (ORCPT + 99 others); Thu, 19 Mar 2020 08:04:34 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12099 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726589AbgCSMEd (ORCPT ); Thu, 19 Mar 2020 08:04:33 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 2BF7BADBA913D66A3E33; Thu, 19 Mar 2020 20:04:26 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 19 Mar 2020 20:04:19 +0800 From: YueHaibing To: Derek Chickles , Leon Romanovsky , "David S . Miller" , "Satanand Burla" , Felix Manlunas CC: YueHaibing , , , , Hulk Robot Subject: [PATCH net-next] liquidio: remove set but not used variable 's' Date: Thu, 19 Mar 2020 12:07:43 +0000 Message-ID: <20200319120743.28056-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200306023254.61731-1-yuehaibing@huawei.com> References: <20200306023254.61731-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'octeon_chip_specific_setup': drivers/net/ethernet/cavium/liquidio/lio_main.c:1378:8: warning: variable 's' set but not used [-Wunused-but-set-variable] It's not used since commit b6334be64d6f ("net/liquidio: Delete driver version assignment") Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/net/ethernet/cavium/liquidio/lio_main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c index a8d9ec927627..66d31c018c7e 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c @@ -1375,7 +1375,6 @@ static int octeon_chip_specific_setup(struct octeon_device *oct) { u32 dev_id, rev_id; int ret = 1; - char *s; pci_read_config_dword(oct->pci_dev, 0, &dev_id); pci_read_config_dword(oct->pci_dev, 8, &rev_id); @@ -1385,13 +1384,11 @@ static int octeon_chip_specific_setup(struct octeon_device *oct) case OCTEON_CN68XX_PCIID: oct->chip_id = OCTEON_CN68XX; ret = lio_setup_cn68xx_octeon_device(oct); - s = "CN68XX"; break; case OCTEON_CN66XX_PCIID: oct->chip_id = OCTEON_CN66XX; ret = lio_setup_cn66xx_octeon_device(oct); - s = "CN66XX"; break; case OCTEON_CN23XX_PCIID_PF: @@ -1404,11 +1401,9 @@ static int octeon_chip_specific_setup(struct octeon_device *oct) pci_sriov_set_totalvfs(oct->pci_dev, oct->sriov_info.max_vfs); #endif - s = "CN23XX"; break; default: - s = "?"; dev_err(&oct->pci_dev->dev, "Unknown device found (dev_id: %x)\n", dev_id); }