projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e4a9d0
)
synclink: use ARRAY_SIZE
author
Kulikov Vasiliy
<segooon@gmail.com>
Mon, 28 Jun 2010 11:54:48 +0000
(15:54 +0400)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 20 Jul 2010 15:04:11 +0000
(17:04 +0200)
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/char/synclink_gt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/synclink_gt.c
b/drivers/char/synclink_gt.c
index 4561ce2fba6d21cb459619114e416816d90ddc6c..334cf5c8c8b6e09f56b67b70ec54921ac8f325fd 100644
(file)
--- a/
drivers/char/synclink_gt.c
+++ b/
drivers/char/synclink_gt.c
@@
-4845,7
+4845,7
@@
static int register_test(struct slgt_info *info)
{
static unsigned short patterns[] =
{0x0000, 0xffff, 0xaaaa, 0x5555, 0x6969, 0x9696};
- static unsigned int count =
sizeof(patterns)/sizeof(patterns[0]
);
+ static unsigned int count =
ARRAY_SIZE(patterns
);
unsigned int i;
int rc = 0;