diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-06-28 07:54:48 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-07-20 11:04:11 -0400 |
commit | 7ea7c6d51ecf6010381fcb8ff67b0fcd6f34c255 (patch) | |
tree | 30a3ac24c3240b47233d4016f6f5ce985cce7698 /drivers/char/synclink_gt.c | |
parent | 0e4a9d03df0a7ba516bbd94d2ec17d26859e46ba (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/synclink_gt.c')
-rw-r--r-- | drivers/char/synclink_gt.c | 2 |
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 | ||