]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBrian Maly <brian.maly@oracle.com>
Tue, 8 Sep 2015 22:27:12 +0000 (18:27 -0400)
commitf975f3bd1ad0654bf9bab45dcf5ee931b6a253d4
treed1045921a900156ada057d5fd6ddf9215a82b322
parent59e5c0dbe974d401192a5ae1aac3a1335a32f58a
igb: use ARRAY_SIZE to replace calculating sizeof(a)/sizeof(a[0])

Orabug: 21792102

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>
(cherry picked from commit 9fa0452b645efdff439948a5cf448b8e497340e9)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/igb/e1000_phy.c