diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-09-19 22:23:15 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-19 21:26:19 -0700 |
commit | c1f9a93d93a0fca526e37042f1b31e53cbb2d075 (patch) | |
tree | 843a69bc0dd72468480d19be26d97e85d85b7557 /drivers/net/ethernet/ibm | |
parent | 3ede0bbcdfc94ccdbe56bed4e66beb3f4f4f6b00 (diff) |
net: ibm: remove a redundant local variable 'k'
The local variable 'k' is never used after being assigned.
hence it should be redundant adn can be removed.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm')
-rw-r--r-- | drivers/net/ethernet/ibm/ehea/ehea_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ibm/ehea/ehea_main.c b/drivers/net/ethernet/ibm/ehea/ehea_main.c index 88128d3b6429..aa0b89777e74 100644 --- a/drivers/net/ethernet/ibm/ehea/ehea_main.c +++ b/drivers/net/ethernet/ibm/ehea/ehea_main.c @@ -778,12 +778,11 @@ static void check_sqs(struct ehea_port *port) { struct ehea_swqe *swqe; int swqe_index; - int i, k; + int i; for (i = 0; i < port->num_def_qps; i++) { struct ehea_port_res *pr = &port->port_res[i]; int ret; - k = 0; swqe = ehea_get_swqe(pr->qp, &swqe_index); memset(swqe, 0, SWQE_HEADER_SIZE); atomic_dec(&pr->swqe_avail); |