e1000e: cleanup strict checkpatch check
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 17 Aug 2012 06:17:57 +0000 (06:17 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 31 Aug 2012 02:10:01 +0000 (19:10 -0700)
CHECK: multiple assignments should be avoided

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>
drivers/net/ethernet/intel/e1000e/ethtool.c

index 2e76f06720fd28fe7fbe2e701bc5b2915fc02813..c11ac2756667bbf7205be4b5d1c903b00e7c3e4b 100644 (file)
@@ -1942,7 +1942,8 @@ static int e1000_set_coalesce(struct net_device *netdev,
                return -EINVAL;
 
        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) {
                adapter->itr = 20000;
                adapter->itr_setting = ec->rx_coalesce_usecs;