From: Ivan Vecera Date: Thu, 11 Jun 2015 13:52:27 +0000 (+0200) Subject: bna: remove useless pointer assignment X-Git-Tag: v5.15~15591^2~78^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b45da3fcd76b9e67b62ac13d4ef076fc5ff2cfce;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: David S. Miller --- 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);