]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: ibm: remove redundant local variables 'act_nr_of_entries' and 'act_pages'
authorzhong jiang <zhongjiang@huawei.com>
Wed, 19 Sep 2018 14:30:49 +0000 (22:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 04:26:40 +0000 (21:26 -0700)
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>
drivers/net/ethernet/ibm/ehea/ehea_qmr.c

index a0820f72b25c88bf9141354231813864c8159fec..5e4e37132bf257fda81a58715cf781748e767853 100644 (file)
@@ -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;
 
@@ -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);