diff options
author | Alejandro Martinez Ruiz <alex@flawedcode.org> | 2007-10-18 10:16:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-29 00:03:37 +0100 |
commit | c00acf46deb18926931ba264510353cf22b98a79 (patch) | |
tree | 7b7105d3505cb13aa0474e0bd89b23d7b9f2b958 /drivers/net/wireless/ipw2100.c | |
parent | netdev: use ARRAY_SIZE() instead of sizeof(array) / ETH_GSTRING_LEN (diff) | |
download | linux-c00acf46deb18926931ba264510353cf22b98a79.tar.xz linux-c00acf46deb18926931ba264510353cf22b98a79.zip |
netdev: ARRAY_SIZE() cleanups
Convert array size calculations to use ARRAY_SIZE().
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index fc6cdd8086c1..dc3813b26440 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c @@ -6591,8 +6591,7 @@ static const long ipw2100_frequencies[] = { 2472, 2484 }; -#define FREQ_COUNT (sizeof(ipw2100_frequencies) / \ - sizeof(ipw2100_frequencies[0])) +#define FREQ_COUNT ARRAY_SIZE(ipw2100_frequencies) static const long ipw2100_rates_11b[] = { 1000000, |