Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2096093yba; Wed, 3 Apr 2019 00:54:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuuZxt2E0oBfvu/rSxk2WH6td3v6En6Vws2mL55hqQ0ZPaaO/nTvMXOU6ceWS51oaZjTVT X-Received: by 2002:a62:4558:: with SMTP id s85mr22844920pfa.171.1554278070144; Wed, 03 Apr 2019 00:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554278070; cv=none; d=google.com; s=arc-20160816; b=KAVq+XaK5dFTQaL0vO2x9p26k9EqanSRYLNioLXSU3Cvuabme4Zz9kpiQ8ElLC0Zlh m3OrEq+/ItGBjdmJ77gvt3Ylfv0u1sg8iuOw7PSSxkv7EU6mGodywicZVozodaNJbHlE M3QtsoFA/cchGJA+OnOykzkbFb25xMaQ1z0TUDmdVpy35ppkaKP0e3qzUw1d6zIrdauN ulF0FW6PCti3yUmDNQiyT57Wpntw/Uoro9Wt7gxLICY1GSJ9Gp1mbwhwGBFpRo0wwiLA o2vcBXCJwvJGHXmFWDEpbFTIK4sYallnNFGxIWCneH+fikYmoaQ+u5Ytk5KH4I7EgNfn 9vZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=4gQd8gbDyXwPd9gupHPkfK1HH0e7jqIO4EtxGfhiVIo=; b=tV2bxWwsiNKdVx/aVxkZ3bMV7Ja+RKsPZk6t/4hACTeHod8LdRXKSCrt3r+SjA5859 QAlfb5smvBqPO60ZKk3AXUF/QfQ78fqN0EHTzfsB4gNtvq7fQdHbsRlkQOmVJFoNhhiW PSRcMe7N7WTYitClkoioxfiQznk9ykwYbMFCvRTeyCo+LvTE1/kzne1pGB9VzgEwFiQY lEOqpFxGqu8M4QwSvWJvh/1NO1KtZNempSItV8rlXigio5iHmIRjSCngiRqHY4Hc3UsM GliApLRn/tqaxq/47zVzkcXn18bdGwfFXeOpAgd4GBIWC+p4gxilImQGA8HX7MsAPqpH ElYA== 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 64si13514148plk.279.2019.04.03.00.54.14; Wed, 03 Apr 2019 00:54:30 -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 S1728696AbfDCHwV (ORCPT + 99 others); Wed, 3 Apr 2019 03:52:21 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38676 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725970AbfDCHwV (ORCPT ); Wed, 3 Apr 2019 03:52:21 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [10.3.19.209]) by Forcepoint Email with ESMTP id 528244757348771CA2F0; Wed, 3 Apr 2019 15:52:19 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.408.0; Wed, 3 Apr 2019 15:52:12 +0800 From: Yue Haibing To: , CC: , , YueHaibing Subject: [PATCH -next] ehea: remove set but not used variables 'epa' and 'cq_handle_ref' Date: Wed, 3 Apr 2019 15:52:08 +0800 Message-ID: <20190403075208.30000-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/ibm/ehea/ehea_qmr.c: In function 'ehea_create_cq': drivers/net/ethernet/ibm/ehea/ehea_qmr.c:127:7: warning: variable 'cq_handle_ref' set but not used [-Wunused-but-set-variable] drivers/net/ethernet/ibm/ehea/ehea_qmr.c:126:15: warning: variable 'epa' set but not used [-Wunused-but-set-variable] They are never used since commit 7a291083225a ("[PATCH] ehea: IBM eHEA Ethernet Device Driver") Signed-off-by: YueHaibing --- drivers/net/ethernet/ibm/ehea/ehea_qmr.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/ethernet/ibm/ehea/ehea_qmr.c b/drivers/net/ethernet/ibm/ehea/ehea_qmr.c index 5e4e371..77ce173 100644 --- a/drivers/net/ethernet/ibm/ehea/ehea_qmr.c +++ b/drivers/net/ethernet/ibm/ehea/ehea_qmr.c @@ -123,8 +123,7 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter, int nr_of_cqe, u64 eq_handle, u32 cq_token) { struct ehea_cq *cq; - struct h_epa epa; - u64 *cq_handle_ref, hret, rpage; + u64 hret, rpage; u32 counter; int ret; void *vpage; @@ -139,8 +138,6 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter, cq->adapter = adapter; - cq_handle_ref = &cq->fw_handle; - hret = ehea_h_alloc_resource_cq(adapter->handle, &cq->attr, &cq->fw_handle, &cq->epas); if (hret != H_SUCCESS) { @@ -188,7 +185,6 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter, } hw_qeit_reset(&cq->hw_queue); - epa = cq->epas.kernel; ehea_reset_cq_ep(cq); ehea_reset_cq_n1(cq); -- 2.7.0