mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 20:33:49 -04:00
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: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Reviewed-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
committed by
Tony Nguyen
parent
99eb3943ab
commit
5a04b958ad
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user