Skip to content
Snippets Groups Projects
Commit e3d14b08 authored by Bruce Allan's avatar Bruce Allan Committed by Jeff Kirsher
Browse files

e1000e: cleanup code duplication


The removed code block is duplicated in e1000e_write_itr() so use that
instead.

Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 3a3104e7
No related branches found
No related tags found
No related merge requests found
...@@ -2405,7 +2405,6 @@ static unsigned int e1000_update_itr(struct e1000_adapter *adapter, ...@@ -2405,7 +2405,6 @@ static unsigned int e1000_update_itr(struct e1000_adapter *adapter,
static void e1000_set_itr(struct e1000_adapter *adapter) static void e1000_set_itr(struct e1000_adapter *adapter)
{ {
struct e1000_hw *hw = &adapter->hw;
u16 current_itr; u16 current_itr;
u32 new_itr = adapter->itr; u32 new_itr = adapter->itr;
...@@ -2468,10 +2467,7 @@ static void e1000_set_itr(struct e1000_adapter *adapter) ...@@ -2468,10 +2467,7 @@ static void e1000_set_itr(struct e1000_adapter *adapter)
if (adapter->msix_entries) if (adapter->msix_entries)
adapter->rx_ring->set_itr = 1; adapter->rx_ring->set_itr = 1;
else else
if (new_itr) e1000e_write_itr(adapter, new_itr);
ew32(ITR, 1000000000 / (new_itr * 256));
else
ew32(ITR, 0);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment