Skip to content

Commit

Permalink
net: ibm: remove redundant local variables 'act_nr_of_entries' and 'a…
Browse files Browse the repository at this point in the history
…ct_pages'

That local variable are never used after being assigned.
hence it should be redundant and can be removed.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
zhong jiang authored and David S. Miller committed Sep 20, 2018
1 parent c1f9a93 commit c8c618a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/ibm/ehea/ehea_qmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter,
struct ehea_cq *cq;
struct h_epa epa;
u64 *cq_handle_ref, hret, rpage;
u32 act_nr_of_entries, act_pages, counter;
u32 counter;
int ret;
void *vpage;

Expand All @@ -140,8 +140,6 @@ struct ehea_cq *ehea_create_cq(struct ehea_adapter *adapter,
cq->adapter = adapter;

cq_handle_ref = &cq->fw_handle;
act_nr_of_entries = 0;
act_pages = 0;

hret = ehea_h_alloc_resource_cq(adapter->handle, &cq->attr,
&cq->fw_handle, &cq->epas);
Expand Down

0 comments on commit c8c618a

Please sign in to comment.