]> err.no Git - linux-2.6/commit
netdev: use ARRAY_SIZE() instead of sizeof(array) / ETH_GSTRING_LEN
authorAlejandro Martinez Ruiz <alex@flawedcode.org>
Thu, 18 Oct 2007 08:00:15 +0000 (10:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:03:36 +0000 (15:03 -0800)
commit4c3616cdda0632a3d0e39069765f9ea0e6bd093e
treed913f63996d479394bcdabd21ebfbdbe16bd1844
parentf59d9782751bf1a2c51e7e1e9f614ffec35fb52e
netdev: use ARRAY_SIZE() instead of sizeof(array) / ETH_GSTRING_LEN

Using ARRAY_SIZE() on arrays of the form array[][K] makes it unnecessary
to know the value of K when checking its size.

Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/cassini.c
drivers/net/e100.c
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000e/ethtool.c
drivers/net/myri10ge/myri10ge.c
drivers/net/netxen/netxen_nic_ethtool.c
drivers/net/pcnet32.c
drivers/net/s2io.c
drivers/net/tehuti.c