mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-03-06 16:38:58 +00:00
sim: bfin: use ARRAY_SIZE
Rather than hardcode the constant, use ARRAY_SIZE to get it. Should be no functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
d4ba18a2ac
commit
410bbc9498
@ -1,3 +1,8 @@
|
||||
2012-03-18 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* dv-bfin_ebiu_amc.c (bfin_ebiu_amc_attach_address_callback): Use
|
||||
ARRAY_SIZE rather than hardcoded constant.
|
||||
|
||||
2012-02-04 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* config.in: Regenerate.
|
||||
|
@ -335,7 +335,7 @@ bfin_ebiu_amc_attach_address_callback (struct hw *me,
|
||||
HW_TRACE ((me, "attach - level=%d, space=%d, addr=0x%lx, nr_bytes=%lu, client=%s",
|
||||
level, space, (unsigned long) addr, (unsigned long) nr_bytes, hw_path (client)));
|
||||
|
||||
if (addr + nr_bytes > 4)
|
||||
if (addr + nr_bytes > ARRAY_SIZE (amc->slaves))
|
||||
hw_abort (me, "ebiu amc attaches are done in terms of banks");
|
||||
|
||||
while (nr_bytes--)
|
||||
|
Loading…
x
Reference in New Issue
Block a user