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 <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a9124ec443
commit
196709f494
@ -5818,8 +5818,8 @@ bnx2_run_loopback(struct bnx2 *bp, int loopback_mode)
|
||||
struct l2_fhdr *rx_hdr;
|
||||
int ret = -ENODEV;
|
||||
struct bnx2_napi *bnapi = &bp->bnx2_napi[0], *tx_napi;
|
||||
struct bnx2_tx_ring_info *txr = &bnapi->tx_ring;
|
||||
struct bnx2_rx_ring_info *rxr = &bnapi->rx_ring;
|
||||
struct bnx2_tx_ring_info *txr;
|
||||
struct bnx2_rx_ring_info *rxr;
|
||||
|
||||
tx_napi = bnapi;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user