]> git.baikalelectronics.ru Git - kernel.git/commit
igb: use ARRAY_SIZE to replace calculating sizeof(a)/sizeof(a[0])
authorTodd Fujinaka <todd.fujinaka@intel.com>
Tue, 30 Jun 2015 22:16:55 +0000 (15:16 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 23 Jul 2015 12:08:30 +0000 (05:08 -0700)
commitb5936c37e731f174cd445c7e703c60aa2653dc6b
treede32c032e6834c07b5218f5c54202b93b1cf4e31
parent139fdb816bfbbf4f555b3eccf45d0e034bd51174
igb: use ARRAY_SIZE to replace calculating sizeof(a)/sizeof(a[0])

Use the ARRAY_SIZE macro rather than calculating sizeof(a)/sizeof(a[0]).
Also directly replace the code rather than using an unnecessary define.

Reported-by: Maninder Singh <maninder1.s@samsung.com>
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Todd Fujinaka <todd.fujinaka@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/e1000_phy.c