i40e: remove redundant assigment
Subsystems (3)
PATCH 1/1 i40e: remove redundant assigment
Remove a redundant assigment of the software ring pointer in the i40e driver. The variable is assigned twice with no use in between, so just get rid of the first occurrence.
--- drivers/net/ethernet/intel/i40e/i40e_xsk.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_xsk.c +0 -1
@@ -306,7 +306,6 @@ int i40e_clean_rx_irq_zc(struct i40e_ring *rx_ring, int budget)continue ; } - bi =i40e_rx_bi (rx_ring, rx_ring->next_to_clean); size = (qword &I40E_RXD_QW1_LENGTH_PBUF_MASK ) >>I40E_RXD_QW1_LENGTH_PBUF_SHIFT ;if (!size)
Signature · 1 line
2.20.1
Quoted 7 lines · Marek Majtyka
Remove a redundant assigment of the software ring pointer in the i40e driver. The variable is assigned twice with no use in between, so just get rid of the first occurrence.
Fixes 3b4f0b66c2b3 ("i40e, xsk: Migrate to new MEM_TYPE_XSK_BUFF_POOL")Signed-off-by Marek Majtyka <[email protected]>
Nice!
Hmm, this could actually go to the net tree.
Bj?rn
Quoted 23 lines
--- drivers/net/ethernet/intel/i40e/i40e_xsk.c | 1 - 1 file changed, 1 deletion(-)drivers/net/ethernet/intel/i40e/i40e_xsk.c +0
-2@@ -306,7 +306,6 @@ int i40e_clean_rx_irq_zc(struct i40e_ring *rx_ring, int budget)continue ; } - bi =i40e_rx_bi (rx_ring, rx_ring->next_to_clean); size = (qword &I40E_RXD_QW1_LENGTH_PBUF_MASK ) >>I40E_RXD_QW1_LENGTH_PBUF_SHIFT ;if (!size) --2.20.1
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
From: Intel-wired-lan <[email protected]> On Behalf Of Marek Majtyka
Sent: Tuesday, September 8, 2020 6:05 PM
To: Karlsson, Magnus <[email protected]>; Topel, Bjorn <[email protected]>; intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T <[email protected]>
Cc: netdev at vger.kernel.org; Fijalkowski, Maciej <[email protected]>; Majtyka, MarekX <[email protected]>; maciejromanfijalkowski at gmain.com
Subject: [Intel-wired-lan] [PATCH net-next] i40e: remove redundant assigment
Remove a redundant assigment of the software ring pointer in the i40e driver. The variable is assigned twice with no use in between, so just get rid of the first occurrence.
--- drivers/net/ethernet/intel/i40e/i40e_xsk.c | 1 - 1 file changed, 1 deletion(-)