From c395e805cda27f3a92cc95e8cb4727524e906efb Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Mon, 24 Oct 2005 18:30:57 +0000 Subject: [PATCH] Invert the check logic. No functional change, but I prefer this version. --- sys/dev/acpica/acpi_acad.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c index 02da0e83820b..f2572361d833 100644 --- a/sys/dev/acpica/acpi_acad.c +++ b/sys/dev/acpica/acpi_acad.c @@ -256,10 +256,8 @@ static void acpi_acad_ac_only(void __unused *arg) { - if (devclass_get_count(acpi_acad_devclass) > 0) - return; - - acpi_UserNotify("ACAD", ACPI_ROOT_OBJECT, 1); + if (devclass_get_count(acpi_acad_devclass) == 0) + acpi_UserNotify("ACAD", ACPI_ROOT_OBJECT, 1); } /*