Commit 5a04b958 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Tony Nguyen

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 assignment.
Signed-off-by: default avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
Reviewed-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 99eb3943
...@@ -2632,7 +2632,6 @@ static void e1000_set_itr(struct e1000_adapter *adapter) ...@@ -2632,7 +2632,6 @@ static void e1000_set_itr(struct e1000_adapter *adapter)
/* for non-gigabit speeds, just fix the interrupt rate at 4000 */ /* for non-gigabit speeds, just fix the interrupt rate at 4000 */
if (unlikely(adapter->link_speed != SPEED_1000)) { if (unlikely(adapter->link_speed != SPEED_1000)) {
current_itr = 0;
new_itr = 4000; new_itr = 4000;
goto set_itr_now; goto set_itr_now;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment