summaryrefslogtreecommitdiff
path: root/drivers/staging/sxg
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/sxg
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/sxg')
-rw-r--r--drivers/staging/sxg/sxg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/sxg/sxg.c b/drivers/staging/sxg/sxg.c
index 3a0dac962e4d..395e876c7dc9 100644
--- a/drivers/staging/sxg/sxg.c
+++ b/drivers/staging/sxg/sxg.c
@@ -3500,7 +3500,7 @@ static void sxg_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]);
}