projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8ba4d5
)
Staging: wlags49_h2: use ARRAY_SIZE
author
Kulikov Vasiliy
<segooon@gmail.com>
Mon, 28 Jun 2010 11:55:41 +0000
(15:55 +0400)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/wlags49_h2/hcf.c
b/drivers/staging/wlags49_h2/hcf.c
index
390628c
..
c4fe0ec
100644
(file)
--- 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