Commit 1ac58ee3 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

[WIRELESS]: use ARRAY_SIZE()



Use ARRAY_SIZE() macro now.
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e71a4783
...@@ -349,8 +349,7 @@ static const struct iw_ioctl_description standard_ioctl[] = { ...@@ -349,8 +349,7 @@ static const struct iw_ioctl_description standard_ioctl[] = {
.max_tokens = sizeof(struct iw_pmksa), .max_tokens = sizeof(struct iw_pmksa),
}, },
}; };
static const unsigned standard_ioctl_num = (sizeof(standard_ioctl) / static const unsigned standard_ioctl_num = ARRAY_SIZE(standard_ioctl);
sizeof(struct iw_ioctl_description));
/* /*
* Meta-data about all the additional standard Wireless Extension events * Meta-data about all the additional standard Wireless Extension events
...@@ -400,8 +399,7 @@ static const struct iw_ioctl_description standard_event[] = { ...@@ -400,8 +399,7 @@ static const struct iw_ioctl_description standard_event[] = {
.max_tokens = sizeof(struct iw_pmkid_cand), .max_tokens = sizeof(struct iw_pmkid_cand),
}, },
}; };
static const unsigned standard_event_num = (sizeof(standard_event) / static const unsigned standard_event_num = ARRAY_SIZE(standard_event);
sizeof(struct iw_ioctl_description));
/* Size (in bytes) of the various private data types */ /* Size (in bytes) of the various private data types */
static const char iw_priv_type_size[] = { static const char iw_priv_type_size[] = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment