Skip to contentSkip to conversation

staging/wlags49_h2: use ARRAY_SIZE

PATCH In review Kulikov Vasiliy 1 participant 1 message Jul 1, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 15/16 staging/wlags49_h2: use ARRAY_SIZE

Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).

---
 drivers/staging/wlags49_h2/hcf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/wlags49_h2/hcf.c +1 -1
index 390628c..c4fe0ec 100644
@@ -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
 
Signature · 1 line
1.7.0.4