Skip to content

Commit 35b842f

Browse files
Dan Carpenterdavem330
authored andcommitted
bnxt_en: Copy and paste bug in extended tx_stats
The struct type was copied from the line before but it should be "tx" instead of "rx". I have reviewed the code and I can't immediately see that this bug causes a runtime issue. Fixes: 36e5334 ("bnxt_en: Add additional extended port statistics.") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 817e929 commit 35b842f

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ struct bnxt {
14711471
struct rx_port_stats *hw_rx_port_stats;
14721472
struct tx_port_stats *hw_tx_port_stats;
14731473
struct rx_port_stats_ext *hw_rx_port_stats_ext;
1474-
struct rx_port_stats_ext *hw_tx_port_stats_ext;
1474+
struct tx_port_stats_ext *hw_tx_port_stats_ext;
14751475
dma_addr_t hw_rx_port_stats_map;
14761476
dma_addr_t hw_tx_port_stats_map;
14771477
dma_addr_t hw_rx_port_stats_ext_map;

0 commit comments

Comments
 (0)