mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 14:02:37 -04:00
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:
committed by
Greg Kroah-Hartman
parent
e8ba4d5d2a
commit
3d63a492d1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user