Commit fe1ec0bd authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

ehea: remove set but not used variables 'epa' and 'cq_handle_ref'

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
7a291083 ("[PATCH] ehea: IBM eHEA Ethernet Device Driver")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1789b8aa
...@@ -123,8 +123,7 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter, ...@@ -123,8 +123,7 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter,
int nr_of_cqe, u64 eq_handle, u32 cq_token) int nr_of_cqe, u64 eq_handle, u32 cq_token)
{ {
struct ehea_cq *cq; struct ehea_cq *cq;
struct h_epa epa; u64 hret, rpage;
u64 *cq_handle_ref, hret, rpage;
u32 counter; u32 counter;
int ret; int ret;
void *vpage; void *vpage;
...@@ -139,8 +138,6 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter, ...@@ -139,8 +138,6 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter,
cq->adapter = adapter; cq->adapter = adapter;
cq_handle_ref = &cq->fw_handle;
hret = ehea_h_alloc_resource_cq(adapter->handle, &cq->attr, hret = ehea_h_alloc_resource_cq(adapter->handle, &cq->attr,
&cq->fw_handle, &cq->epas); &cq->fw_handle, &cq->epas);
if (hret != H_SUCCESS) { if (hret != H_SUCCESS) {
...@@ -188,7 +185,6 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter, ...@@ -188,7 +185,6 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter,
} }
hw_qeit_reset(&cq->hw_queue); hw_qeit_reset(&cq->hw_queue);
epa = cq->epas.kernel;
ehea_reset_cq_ep(cq); ehea_reset_cq_ep(cq);
ehea_reset_cq_n1(cq); ehea_reset_cq_n1(cq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment