Staging: wlags49_h2: use ARRAY_SIZE
authorKulikov Vasiliy <segooon@gmail.com>
Mon, 28 Jun 2010 11:55:41 +0000 (15:55 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Jul 2010 20:30:43 +0000 (13:30 -0700)
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlags49_h2/hcf.c

index 390628c6c1ebe900c1e46586a080e92418da6475..c4fe0ec95074b3cc668fb0713b7de277730d4828 100644 (file)
@@ -502,7 +502,7 @@ HCF_STATIC hcf_16* BASED xxxx[ ] = {
 #endif // MSF_COMPONENT_ID
        NULL                                                                    //endsentinel
   };
-#define xxxx_PRI_IDENTITY_OFFSET       (sizeof(xxxx)/sizeof(xxxx[0]) - 3)
+#define xxxx_PRI_IDENTITY_OFFSET       (ARRAY_SIZE(xxxx) - 3)
 
 #endif // MSF_COMPONENT_ID / HCF_EXT_MB