drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE
Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:

committed by
David S. Miller

parent
10d024c1b2
commit
ff8ac60948
@@ -2680,8 +2680,7 @@ static const struct mv643xx_stats mv643xx_gstrings_stats[] = {
|
||||
{ "late_collision", MV643XX_STAT(mib_counters.late_collision) },
|
||||
};
|
||||
|
||||
#define MV643XX_STATS_LEN \
|
||||
sizeof(mv643xx_gstrings_stats) / sizeof(struct mv643xx_stats)
|
||||
#define MV643XX_STATS_LEN ARRAY_SIZE(mv643xx_gstrings_stats)
|
||||
|
||||
static void mv643xx_get_drvinfo(struct net_device *netdev,
|
||||
struct ethtool_drvinfo *drvinfo)
|
||||
|
Reference in New Issue
Block a user