Commit 06a402ef authored by Bruce Allan's avatar Bruce Allan Committed by Jeff Kirsher

e1000e: cleanup strict checkpatch check

CHECK: multiple assignments should be avoided
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 bc76329d
...@@ -1942,7 +1942,8 @@ static int e1000_set_coalesce(struct net_device *netdev, ...@@ -1942,7 +1942,8 @@ static int e1000_set_coalesce(struct net_device *netdev,
return -EINVAL; return -EINVAL;
if (ec->rx_coalesce_usecs == 4) { if (ec->rx_coalesce_usecs == 4) {
adapter->itr = adapter->itr_setting = 4; adapter->itr_setting = 4;
adapter->itr = adapter->itr_setting;
} else if (ec->rx_coalesce_usecs <= 3) { } else if (ec->rx_coalesce_usecs <= 3) {
adapter->itr = 20000; adapter->itr = 20000;
adapter->itr_setting = ec->rx_coalesce_usecs; adapter->itr_setting = ec->rx_coalesce_usecs;
......
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