diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-03-05 14:00:42 +0100 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-03-05 14:00:42 +0100 |
commit | 5959b3052374aa51e3cecf905a024730240d5b25 (patch) | |
tree | 0c8571be010445029378ab8605dfc10607e7362e /at76_usb.h | |
parent | 4b50804c047272075f07edb5b62d857e3200d6a0 (diff) |
use ARRAY_SIZE instead of sizeof(array) / sizeof(array[0])
Diffstat (limited to 'at76_usb.h')
-rw-r--r-- | at76_usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}; |