summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-19 23:44:33 +0000
committerpfg <pfg@FreeBSD.org>2016-04-19 23:44:33 +0000
commit99e9a53c8161ee4ae550ad18b73edd303a3724f4 (patch)
treeafa86333c517a9bad7c58c8ff4b8c214ce386938 /sys/boot/efi
parentbe4082c832ab3e8ed4b2d4877eb549a54174bf85 (diff)
downloadFreeBSD-src-99e9a53c8161ee4ae550ad18b73edd303a3724f4.zip
FreeBSD-src-99e9a53c8161ee4ae550ad18b73edd303a3724f4.tar.gz
sys/boot: use our nitems() macro when it is available through param.h.
No functional change, only trivial cases are done in this sweep, Discussed in: freebsd-current
Diffstat (limited to 'sys/boot/efi')
-rw-r--r--sys/boot/efi/loader/bootinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/efi/loader/bootinfo.c b/sys/boot/efi/loader/bootinfo.c
index c6a76ab..1f45ea3 100644
--- a/sys/boot/efi/loader/bootinfo.c
+++ b/sys/boot/efi/loader/bootinfo.c
@@ -445,7 +445,7 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp)
/* Do relocation fixup on metadata of each module. */
for (xp = file_findfile(NULL, NULL); xp != NULL; xp = xp->f_next) {
- for (i = 0; i < sizeof mdt / sizeof mdt[0]; i++) {
+ for (i = 0; i < nitems(mdt); i++) {
md = file_findmetadata(xp, mdt[i]);
if (md) {
bcopy(md->md_data, &vaddr, sizeof vaddr);
OpenPOWER on IntegriCloud