Skip to content

Commit

Permalink
synclink: use ARRAY_SIZE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kulikov Vasiliy authored and Jiri Kosina committed Jul 20, 2010
1 parent 0e4a9d0 commit 7ea7c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/synclink_gt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7ea7c6d

Please sign in to comment.