Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0feae200 authored by Chaitanya Dhere's avatar Chaitanya Dhere Committed by Greg Kroah-Hartman
Browse files

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: default avatarChaitanya Dhere <cvijaydh@visteon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 52db7520
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();