summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorNikitas Angelinas <nikitasangelinas@gmail.com>2010-09-08 21:29:53 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2010-09-14 20:05:57 (GMT)
commit942623166df3256821e8451273bc07737745e3cb (patch)
treea60dca14153c7d56ccf8a04db95b951cf4a2bfed /net/wireless
parentbbce80e1101526f7a616e75a0d77b57f4062c62d (diff)
downloadlinux-942623166df3256821e8451273bc07737745e3cb.tar.xz
net/wireless: use ARRAY_SIZE macro in radiotap.c
Replace sizeof(rtap_namespace_sizes) / sizeof(rtap_namespace_sizes[0]) with ARRAY_SIZE(rtap_namespace_sizes) in net/wireless/radiotap.c Signed-off-by: Nikitas Angelinas <nikitasangelinas@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/radiotap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/radiotap.c b/net/wireless/radiotap.c
index 1332c44..c774bc0 100644
--- a/net/wireless/radiotap.c
+++ b/net/wireless/radiotap.c
@@ -14,6 +14,7 @@
* See COPYING for more details.
*/
+#include <linux/kernel.h>
#include <net/cfg80211.h>
#include <net/ieee80211_radiotap.h>
#include <asm/unaligned.h>
@@ -45,7 +46,7 @@ static const struct radiotap_align_size rtap_namespace_sizes[] = {
};
static const struct ieee80211_radiotap_namespace radiotap_ns = {
- .n_bits = sizeof(rtap_namespace_sizes) / sizeof(rtap_namespace_sizes[0]),
+ .n_bits = ARRAY_SIZE(rtap_namespace_sizes),
.align_size = rtap_namespace_sizes,
};