]> git.baikalelectronics.ru Git - kernel.git/commit
igb: avoid unnecessary conversions from u16 to int
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 26 Aug 2011 07:45:26 +0000 (07:45 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 8 Oct 2011 05:35:50 +0000 (22:35 -0700)
commit9e98d3257e88d52260b2afbbbe8c35d165c1282b
tree484ed5fad188cf3014be9a89773e8fbb6ad7430b
parent51908b2d87799fef26b0ae64b5908a06ed507d12
igb: avoid unnecessary conversions from u16 to int

There are a number of places where we have values that are stored as u16
but are being converted to int unnecessarily.  In order to avoid that we
should convert all variables that deal with the next_to_clean, next_to_use,
and count to u16 values.

Signed-off-by: Alexander Duyck <alexander.h.duyck@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/igb/igb_ethtool.c
drivers/net/ethernet/intel/igb/igb_main.c