diff options
Diffstat (limited to 'post/drivers')
-rw-r--r-- | post/drivers/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/post/drivers/memory.c b/post/drivers/memory.c index 3f47449f198..4cca0357841 100644 --- a/post/drivers/memory.c +++ b/post/drivers/memory.c @@ -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; |