Skip to contentSkip to conversation

ice: fix typo in assignment

PATCH In review Jesse Brandeburg 3 participants 3 messages Mar 5, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice: fix typo in assignment

Fix an obviously incorrect assignment, created with a typo or cut-n-paste error.

Fixes 5995ef88e3a8 ("ice: realloc VSI stats arrays")
---
 drivers/net/ethernet/intel/ice/ice_lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_lib.c +1 -1
index 097bf8fd6bf0..fc23dbe302b4 100644
@@ -3192,7 +3192,7 @@ ice_vsi_realloc_stat_arrays(struct ice_vsi *vsi)
 		}
 	}
 
-	tx_ring_stats = vsi_stat->rx_ring_stats;
+	tx_ring_stats = vsi_stat->tx_ring_stats;
 	vsi_stat->tx_ring_stats =
 		krealloc_array(vsi_stat->tx_ring_stats, req_txq,
 			       sizeof(*vsi_stat->tx_ring_stats),

base-commit: 948abb59ebd3892c425165efd8fb2f5954db8de7

Signature · 1 line
2.39.3
Reviewed-by on v1 1/1
#2 lore raw
In reply to Jesse Brandeburg

Dear Jesse,

Thank you for your patch.

Am 05.03.24 um 01:37 schrieb Jesse Brandeburg:

Quoted 2 lines

Fix an obviously incorrect assignment, created with a typo or cut-n-paste error.

It’s probably just me, but with these one letter typos I still have to search the diff two or three times to spot the typo. Maybe even use (next time) as commit message summary:

ice: Assign tx ring stats value to tx stats and not rx ones

Quoted 20 lines
Fixes 5995ef88e3a8 ("ice: realloc VSI stats arrays")
---
  drivers/net/ethernet/intel/ice/ice_lib.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_lib.c +1 -1
index 097bf8fd6bf0..fc23dbe302b4 100644
@@ -3192,7 +3192,7 @@ ice_vsi_realloc_stat_arrays(struct ice_vsi *vsi)
  		}
  	}
 
-	tx_ring_stats = vsi_stat->rx_ring_stats;
+	tx_ring_stats = vsi_stat->tx_ring_stats;
  	vsi_stat->tx_ring_stats =
  		krealloc_array(vsi_stat->tx_ring_stats, req_txq,
  			       sizeof(*vsi_stat->tx_ring_stats),
Quoted 1 line

base-commit: 948abb59ebd3892c425165efd8fb2f5954db8de7

Kind regards,

Paul