diff options
author | Denis Cheng <crquan@gmail.com> | 2007-09-02 06:30:18 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:15 -0400 |
commit | ff8ac60948ba819b89e9c87083e8050fc2f89999 (patch) | |
tree | 611975d22d7ddd8c49a073c61e6e4b7c9523fedb /drivers/net/wireless/ipw2100.c | |
parent | 10d024c1b2fd58af8362670d7d6e5ae52fc33353 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 12a6887cb9f1..b3c07b93afce 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -8277,10 +8277,9 @@ static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev) | |||
8277 | 8277 | ||
8278 | static struct iw_handler_def ipw2100_wx_handler_def = { | 8278 | static struct iw_handler_def ipw2100_wx_handler_def = { |
8279 | .standard = ipw2100_wx_handlers, | 8279 | .standard = ipw2100_wx_handlers, |
8280 | .num_standard = sizeof(ipw2100_wx_handlers) / sizeof(iw_handler), | 8280 | .num_standard = ARRAY_SIZE(ipw2100_wx_handlers), |
8281 | .num_private = sizeof(ipw2100_private_handler) / sizeof(iw_handler), | 8281 | .num_private = ARRAY_SIZE(ipw2100_private_handler), |
8282 | .num_private_args = sizeof(ipw2100_private_args) / | 8282 | .num_private_args = ARRAY_SIZE(ipw2100_private_args), |
8283 | sizeof(struct iw_priv_args), | ||
8284 | .private = (iw_handler *) ipw2100_private_handler, | 8283 | .private = (iw_handler *) ipw2100_private_handler, |
8285 | .private_args = (struct iw_priv_args *)ipw2100_private_args, | 8284 | .private_args = (struct iw_priv_args *)ipw2100_private_args, |
8286 | .get_wireless_stats = ipw2100_wx_wireless_stats, | 8285 | .get_wireless_stats = ipw2100_wx_wireless_stats, |