From: Todd Fujinaka Date: Tue, 30 Jun 2015 22:16:55 +0000 (-0700) Subject: igb: use ARRAY_SIZE to replace calculating sizeof(a)/sizeof(a[0]) X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~313^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa0452b645efdff439948a5cf448b8e497340e9;p=pandora-kernel.git 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 Reported-by: Joe Perches Signed-off-by: Todd Fujinaka Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed