Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1769561pxb; Sat, 14 Nov 2020 01:29:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0bya3JZ4K8GHkzynTFkyuoInCWX9qP1ksSJOdtpkWPyLe7SqJe5KoRe6XGlHNHBRNcGG6 X-Received: by 2002:a50:d582:: with SMTP id v2mr6891654edi.218.1605346146242; Sat, 14 Nov 2020 01:29:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605346146; cv=none; d=google.com; s=arc-20160816; b=aXWqXHFR2SLSYFH1a9s8ew5FcTd4SYqbVsX6bna9GFzcDrSMgkP8EX9JzFHyISc+dp HP50KonTJoaktLdBnVYAz1ImiiTp7txRXvePDgoCeCLHnMB0Jh/WwonBGusLMfYW/dKu XjAuS1VtCbVaNKjxt0ECcl5O793LxkGpBZqFx+PabsmqX5W88FNWpBuPpncNHFQoqVru PMCxfJkIM+7hw2LsZlPbW8lXkhbcBKXBjNjeKDtnJXn1EWfqUGwxXkZRV/0qHbw3ls0g 5g6H3aQp+s03a/1qpTtQQ+ZI0r05QwPGKhw//ch9YeaG4k+Ghy2hQfbDqy6vsjQdXJJh GDow== 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=H9+aodiPMp4Uze/evr87XFeujWvZFF8yCLEdhIfXVEM=; b=mCWEQyafuqTdMr2HTV5hZMXU1htZprmO44PUiLFAntkd3iqvOlSuZnRXh2vlgoxOqT WaLJ/fw0tlddkFbqNu4dXIqEX7Nf4xRRLHT+dydcJlRcNriacBiXA72ygW3/bu29jjDs 8aC+NMEtBHhx3s/BgYMMkZtBGMq3+f+iAqYydeWS62N68SCeDUNlBD6J5EiZQaNbP7SJ oIQszZ8/TVISXbZeBmb6RlG9cMJL4j/RdtwYHHBYTf0uRMXSU4A6cCkXF3lnmIuL7p4M vMW/O+KWb3LQn0Vr1Js6jCUoYwIN1eE5jT814kX4LEAHi1uaxoKJtpZejmK0SpuC0BGJ iOfg== 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 cc8si8461500edb.163.2020.11.14.01.28.43; Sat, 14 Nov 2020 01:29:06 -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 S1726739AbgKNJ0x (ORCPT + 99 others); Sat, 14 Nov 2020 04:26:53 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7539 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbgKNJ0w (ORCPT ); Sat, 14 Nov 2020 04:26:52 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CY92P0hcCzhh4p; Sat, 14 Nov 2020 17:26:37 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sat, 14 Nov 2020 17:26:37 +0800 From: Zou Wei To: , , CC: , , Zou Wei Subject: [PATCH -next] cxgb4: Remove unused variable ret Date: Sat, 14 Nov 2020 17:38:26 +0800 Message-ID: <1605346706-23782-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 This patch fixes below warning reported by coccicheck: ./drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:3284:5-8: Unneeded variable: "ret". Return "0" on line 3301 Signed-off-by: Zou Wei --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 98d01a7..426d15e 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c @@ -3281,8 +3281,6 @@ int t4_get_scfg_version(struct adapter *adapter, u32 *vers) */ int t4_get_version_info(struct adapter *adapter) { - int ret = 0; - #define FIRST_RET(__getvinfo) \ do { \ int __ret = __getvinfo; \ @@ -3298,7 +3296,7 @@ int t4_get_version_info(struct adapter *adapter) FIRST_RET(t4_get_vpd_version(adapter, &adapter->params.vpd_vers)); #undef FIRST_RET - return ret; + return 0; } /** -- 2.6.2