aboutsummaryrefslogtreecommitdiff
path: root/at76_usb.h
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2007-03-05 14:00:42 +0100
committerGuido Guenther <agx@bogon.sigxcpu.org>2007-03-05 14:00:42 +0100
commit5959b3052374aa51e3cecf905a024730240d5b25 (patch)
tree0c8571be010445029378ab8605dfc10607e7362e /at76_usb.h
parent4b50804c047272075f07edb5b62d857e3200d6a0 (diff)
use ARRAY_SIZE instead of sizeof(array) / sizeof(array[0])
Diffstat (limited to 'at76_usb.h')
-rw-r--r--at76_usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/at76_usb.h b/at76_usb.h
index df0a529..8398f26 100644
--- a/at76_usb.h
+++ b/at76_usb.h
@@ -762,7 +762,7 @@ static const long channel_frequency[] = {
2412, 2417, 2422, 2427, 2432, 2437, 2442,
2447, 2452, 2457, 2462, 2467, 2472, 2484
};
-#define NUM_CHANNELS ( sizeof(channel_frequency) / sizeof(channel_frequency[0]) )
+#define NUM_CHANNELS ARRAY_SIZE(channel_frequency)
/* the supported rates of this hardware, bit7 marks a basic rate */
static const u8 hw_rates[4] = {0x82,0x84,0x0b,0x16};