diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-05 18:58:29 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-02-14 15:45:04 -0500 |
commit | e7c04fd3d00f69ce1cad5418a08016da484ea86a (patch) | |
tree | bf0f424a1b6e7ebc3b403c1fc1351355d3dcf3a3 /drivers/net/wireless/prism54/oid_mgt.c | |
parent | 22d574324939d62f625095913dd3df526ecaa0c8 (diff) | |
download | blackbird-op-linux-e7c04fd3d00f69ce1cad5418a08016da484ea86a.tar.gz blackbird-op-linux-e7c04fd3d00f69ce1cad5418a08016da484ea86a.zip |
[PATCH] misc-wireless: Use ARRAY_SIZE macro when appropriate
A patch to use ARRAY_SIZE macro already defined in kernel.h for some
miscellaneous wireless drivers with no specific maintaners.
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/prism54/oid_mgt.c')
-rw-r--r-- | drivers/net/wireless/prism54/oid_mgt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/prism54/oid_mgt.c b/drivers/net/wireless/prism54/oid_mgt.c index e6cf9df2c206..42780320cd5c 100644 --- a/drivers/net/wireless/prism54/oid_mgt.c +++ b/drivers/net/wireless/prism54/oid_mgt.c @@ -16,6 +16,8 @@ * */ +#include <linux/kernel.h> + #include "prismcompat.h" #include "islpci_dev.h" #include "islpci_mgt.h" @@ -692,7 +694,7 @@ mgt_update_addr(islpci_private *priv) return ret; } -#define VEC_SIZE(a) (sizeof(a)/sizeof(a[0])) +#define VEC_SIZE(a) ARRAY_SIZE(a) int mgt_commit(islpci_private *priv) |