post: use ARRAY_SIZE
We've got a handy dandy macro already for calculating the number of elements in an array, so use it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
9146d13821
commit
d2397817f1
@@ -225,7 +225,7 @@ const unsigned long long otherpattern = 0x0123456789abcdefULL;
|
||||
static int memory_post_dataline(unsigned long long * pmem)
|
||||
{
|
||||
unsigned long long temp64 = 0;
|
||||
int num_patterns = sizeof(pattern)/ sizeof(pattern[0]);
|
||||
int num_patterns = ARRAY_SIZE(pattern);
|
||||
int i;
|
||||
unsigned int hi, lo, pathi, patlo;
|
||||
int ret = 0;
|
||||
|
||||
Reference in New Issue
Block a user