summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/brocade
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2015-06-11 15:52:27 +0200
committerDavid S. Miller <davem@davemloft.net>2015-06-12 00:57:17 +0200
commitb45da3fcd76b9e67b62ac13d4ef076fc5ff2cfce (patch)
treef2a2d2f587529cc5276316517392efe6cd38b3e8 /drivers/net/ethernet/brocade
parentbna: use memdup_user to copy userspace buffers (diff)
downloadlinux-b45da3fcd76b9e67b62ac13d4ef076fc5ff2cfce.tar.xz
linux-b45da3fcd76b9e67b62ac13d4ef076fc5ff2cfce.zip
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>
Diffstat (limited to 'drivers/net/ethernet/brocade')
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad.c1
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 0f833e4ac496..fc97428b25c5 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);