aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-06-28 07:54:48 -0400
committerJiri Kosina <jkosina@suse.cz>2010-07-20 11:04:11 -0400
commit7ea7c6d51ecf6010381fcb8ff67b0fcd6f34c255 (patch)
tree30a3ac24c3240b47233d4016f6f5ce985cce7698 /drivers/char
parent0e4a9d03df0a7ba516bbd94d2ec17d26859e46ba (diff)
synclink: use ARRAY_SIZE
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/synclink_gt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c
index 4561ce2fba6d..334cf5c8c8b6 100644
--- a/drivers/char/synclink_gt.c
+++ b/drivers/char/synclink_gt.c
@@ -4845,7 +4845,7 @@ static int register_test(struct slgt_info *info)
4845{ 4845{
4846 static unsigned short patterns[] = 4846 static unsigned short patterns[] =
4847 {0x0000, 0xffff, 0xaaaa, 0x5555, 0x6969, 0x9696}; 4847 {0x0000, 0xffff, 0xaaaa, 0x5555, 0x6969, 0x9696};
4848 static unsigned int count = sizeof(patterns)/sizeof(patterns[0]); 4848 static unsigned int count = ARRAY_SIZE(patterns);
4849 unsigned int i; 4849 unsigned int i;
4850 int rc = 0; 4850 int rc = 0;
4851 4851