summaryrefslogtreecommitdiff
path: root/drivers/staging/slicoss
diff options
context:
space:
mode:
authorStoyan Gaydarov <sgayda2@uiuc.edu>2009-07-21 22:02:27 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:02:06 -0700
commitb6ac161364eccce1bea4a23a9de395883e90d7ab (patch)
tree67c09dab1846a84fb0030ccfcd6f5b5a228a5eb0 /drivers/staging/slicoss
parent2e9ab1e72c631041f8a1c1d1fc7e5359e7e4a476 (diff)
Staging: ARRAY_SIZE changes
These changes were a direct result of using a semantic patch More information can be found at http://www.emn.fr/x-info/coccinelle/ Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/slicoss')
-rw-r--r--drivers/staging/slicoss/slicoss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c
index b01a2822a8ee..e67a130f9e46 100644
--- a/drivers/staging/slicoss/slicoss.c
+++ b/drivers/staging/slicoss/slicoss.c
@@ -1306,7 +1306,7 @@ static void slic_mcast_init_crc32(void)
static int p[] = { 0, 1, 2, 4, 5, 7, 8, 10, 11, 12, 16, 22, 23, 26 };
- for (i = 0; i < sizeof(p) / sizeof(int); i++)
+ for (i = 0; i < ARRAY_SIZE(p); i++)
e |= 1L << (31 - p[i]);
for (i = 1; i < 256; i++) {