Staging: wlags49_h2: use ARRAY_SIZE
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>
This commit is contained in:
parent
e8ba4d5d2a
commit
3d63a492d1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue