diff options
author | Bruce Allan | 2012-12-05 07:26:51 +0100 |
---|---|---|
committer | Jeff Kirsher | 2013-01-16 09:49:47 +0100 |
commit | e3d14b08e80744958af920ab8bc8ee3866c3902b (patch) | |
tree | 22269cc96efc9e58dbd6c02e03c467a84d930a4b /drivers/net/ethernet/intel/e1000e | |
parent | e1000e: cleanup magic number (diff) | |
download | kernel-qcow2-linux-e3d14b08e80744958af920ab8bc8ee3866c3902b.tar.gz kernel-qcow2-linux-e3d14b08e80744958af920ab8bc8ee3866c3902b.tar.xz kernel-qcow2-linux-e3d14b08e80744958af920ab8bc8ee3866c3902b.zip |
e1000e: cleanup code duplication
The removed code block is duplicated in e1000e_write_itr() so use that
instead.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/netdev.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c index 18790a608f4f..6aa9c5d31a48 100644 --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -2405,7 +2405,6 @@ static unsigned int e1000_update_itr(struct e1000_adapter *adapter, static void e1000_set_itr(struct e1000_adapter *adapter) { - struct e1000_hw *hw = &adapter->hw; u16 current_itr; u32 new_itr = adapter->itr; @@ -2468,10 +2467,7 @@ set_itr_now: if (adapter->msix_entries) adapter->rx_ring->set_itr = 1; else - if (new_itr) - ew32(ITR, 1000000000 / (new_itr * 256)); - else - ew32(ITR, 0); + e1000e_write_itr(adapter, new_itr); } } |