use ACPI_FAILURE() macro instead of directly check AE_OK

This commit is contained in:
kochi 2006-02-16 06:18:59 +00:00
parent dca4768842
commit 539e1b8f22

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_madt.c,v 1.14 2005/12/11 12:21:01 christos Exp $ */
/* $NetBSD: acpi_madt.c,v 1.15 2006/02/16 06:18:59 kochi Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_madt.c,v 1.14 2005/12/11 12:21:01 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_madt.c,v 1.15 2006/02/16 06:18:59 kochi Exp $");
#include <sys/param.h>
#include <sys/ioctl.h>
@ -170,7 +170,7 @@ acpi_madt_walk(ACPI_STATUS (*func)(APIC_HEADER *, void *), void *aux)
where = (char *)madt_header + sizeof (MULTIPLE_APIC_TABLE);
while (where < madtend) {
hdrp = (APIC_HEADER *)where;
if (func(hdrp, aux) != AE_OK)
if (ACPI_FAILURE(func(hdrp, aux)))
break;
where += hdrp->Length;
}