]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 12:47:41 +0000 (20:47 +0800)
commit5629fd6f7017681d49b817519203c05ac1b84c23
tree6818ddb21bcf9d97e97642aae6edcb39724b2c37
parent77e9d491d9207ac8d9c05be30119685b1aed149c
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.

(cherry picked from commit 6ad4edfcd7b6321da34e7cd0c88dd97adddd7f57)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/igb/igb_ethtool.c
drivers/net/igb/igb_main.c