e1000: drop unneeded assignment in e1000_set_itr()
Subsystems (3)
PATCH 1/1 e1000: drop unneeded assignment in e1000_set_itr()
The variable 'current_itr' is assigned to 0 before jumping to 'set_itr_now' but it has not been used after the jump. So, remove the unneeded assignement.
Signed-off-by Sudip Mukherjee <[email protected]>
--- drivers/net/ethernet/intel/e1000/e1000_main.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/intel/e1000/e1000_main.c +0 -1
@@ -2632,7 +2632,6 @@ static void e1000_set_itr(struct e1000_adapter *adapter)/* for non-gigabit speeds, just fix the interrupt rate at 4000 */ if (unlikely (adapter->link_speed !=SPEED_1000 )) { - current_itr =0 ; new_itr =4000 ; goto set_itr_now; }
Signature · 1 line
2.11.0
Quoted 14 lines · Sudip Mukherjee
The variable '
current_itr' is assigned to 0 before jumping to 'set_itr_now' but it has not been used after the jump. So, remove the unneeded assignement.Signed-off-by Sudip Mukherjee <[email protected]>--- drivers/net/ethernet/intel/e1000/e1000_main.c | 1 - 1 file changed, 1 deletion(-)drivers/net/ethernet/intel/e1000/e1000_main.c +0
-0
drivers/net/ethernet/intel/e1000/e1000_main.c static void e1000_set_itr(struct e1000_adapter *adapter) · line 2637
Quoted 7 lines
drivers/net/ethernet/intel/e1000/e1000_main.c +0
-1@@ -2632,7 +2632,6 @@ static void e1000_set_itr(struct e1000_adapter *adapter)/* for non-gigabit speeds, just fix the interrupt rate at 4000 */ if (unlikely (adapter->link_speed !=SPEED_1000 )) { - current_itr =0 ; new_itr =4000 ; goto set_itr_now; }
Alternatively, you could just inline the max(...) into the switch and completely drop the current_itr definition.
But your solution probably does the job: it is a "No functional change" commit.
Reviewed-by Lukas Bulwahn <[email protected]>
Lukas
Quoted 15 lines
Signature · 11 lines
2.11.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#77): https://lists.elisa.tech/g/linux-safety/message/77 Mute This Topic: https://lists.elisa.tech/mt/77448709/1714638 Group Owner: linux-safety+owner at lists.elisa.tech Unsubscribe: https://lists.elisa.tech/g/linux-safety/unsub [lukas.bulwahn at gmail.com] -=-=-=-=-=-=-=-=-=-=-=-