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 0f833e4ac496f8be3b4fc71d73f32a1495d158e5..fc97428b25c551d5b36357a6f29dcf23e6637588 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);