bna: remove useless pointer assignment
authorIvan Vecera <ivecera@redhat.com>
Thu, 11 Jun 2015 13:52:27 +0000 (15:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2015 22:57:17 +0000 (15:57 -0700)
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>
drivers/net/ethernet/brocade/bna/bnad.c

index 0f833e4..fc97428 100644 (file)
@@ -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);