summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaitanya Dhere <cvijaydh@visteon.com>2015-06-02 09:58:50 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-08 12:41:51 -0700
commit0feae20091dd4a1c79e085ce1c0572affdbe6247 (patch)
tree9e3db45b0981bec9ae7f54ce57faa7b48c606b46
parent52db7520775e5c4103e0e06a61abbadcf73d2d96 (diff)
staging: wilc1000: Modification in code to use ARRAY_SIZE macro
In this patch, ARRAY_SIZE() macro is used to determine the size. This change was detected with the help of coccinelle tool. Signed-off-by: Chaitanya Dhere <cvijaydh@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wilc1000/linux_wlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index b033eb879ca1..592b8aec40e9 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -1737,7 +1737,7 @@ static int linux_wlan_read_mac_addr(void *vp)
mm_segment_t old_fs;
loff_t pos = 0;
int index;
- int array_size = sizeof(path_string) / sizeof(path_string[0]);
+ int array_size = ARRAY_SIZE(path_string);
/* change to KERNEL_DS address limit */
old_fs = get_fs();