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
@@ -204,7 +204,7 @@ static const struct phy_setting settings[] = {
|
||||
},
|
||||
};
|
||||
|
||||
#define MAX_NUM_SETTINGS (sizeof(settings)/sizeof(struct phy_setting))
|
||||
#define MAX_NUM_SETTINGS ARRAY_SIZE(settings)
|
||||
|
||||
/**
|
||||
* phy_find_setting - find a PHY settings array entry that matches speed & duplex
|
||||
|
Reference in New Issue
Block a user