diff --git a/drivers/staging/wlags49_h2/hcf.c b/drivers/staging/wlags49_h2/hcf.c index 390628c6c1ebe900c1e46586a080e92418da6475..c4fe0ec95074b3cc668fb0713b7de277730d4828 100644 --- a/drivers/staging/wlags49_h2/hcf.c +++ b/drivers/staging/wlags49_h2/hcf.c @@ -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