diff options
author | Ivan Vecera <ivecera@redhat.com> | 2015-06-11 13:52:27 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-11 22:57:17 (GMT) |
commit | b45da3fcd76b9e67b62ac13d4ef076fc5ff2cfce (patch) | |
tree | f2a2d2f587529cc5276316517392efe6cd38b3e8 | |
parent | d0e6a8064c4293a1e087b2fdd6c2b67cd8ba8f56 (diff) | |
download | linux-b45da3fcd76b9e67b62ac13d4ef076fc5ff2cfce.tar.xz |
bna: remove useless pointer assignment
Pointer cmpl used to iterate through completion entries is updated at
the beginning of while loop as well as at the end. The update at the end
of the loop is useless.
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index 0f833e4..fc97428 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -725,7 +725,6 @@ next: cmpl->valid = 0; BNA_QE_INDX_INC(ccb->producer_index, ccb->q_depth); } - cmpl = &cq[ccb->producer_index]; } napi_gro_flush(&rx_ctrl->napi, false); |