Skip to content

Commit 196709f

Browse files
Colin Ian Kingdavem330
authored andcommitted
bnx2: remove redundant initializations of pointers txr and rxr
Pointers txr and rxr are being initialized and a few statements later are being assigned new values without the original values ever being read. The initialized values are therefore redundant and can be removed. Cleans up clang warnings: drivers/net/ethernet/broadcom/bnx2.c:5821:28: warning: Value stored to 'txr' during its initialization is never read drivers/net/ethernet/broadcom/bnx2.c:5822:28: warning: Value stored to 'rxr' during its initialization is never read Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a9124ec commit 196709f

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+2
-2
lines changed

drivers/net/ethernet/broadcom/bnx2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5818,8 +5818,8 @@ bnx2_run_loopback(struct bnx2 *bp, int loopback_mode)
58185818
struct l2_fhdr *rx_hdr;
58195819
int ret = -ENODEV;
58205820
struct bnx2_napi *bnapi = &bp->bnx2_napi[0], *tx_napi;
5821-
struct bnx2_tx_ring_info *txr = &bnapi->tx_ring;
5822-
struct bnx2_rx_ring_info *rxr = &bnapi->rx_ring;
5821+
struct bnx2_tx_ring_info *txr;
5822+
struct bnx2_rx_ring_info *rxr;
58235823

58245824
tx_napi = bnapi;
58255825

0 commit comments

Comments
 (0)