diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-06-28 11:54:48 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-07-20 15:04:11 (GMT) |
commit | 7ea7c6d51ecf6010381fcb8ff67b0fcd6f34c255 (patch) | |
tree | 30a3ac24c3240b47233d4016f6f5ce985cce7698 /drivers/char | |
parent | 0e4a9d03df0a7ba516bbd94d2ec17d26859e46ba (diff) | |
download | linux-7ea7c6d51ecf6010381fcb8ff67b0fcd6f34c255.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index 4561ce2..334cf5c 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) { 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; |