Invert the check logic. No functional change, but I prefer this version.
This commit is contained in:
parent
ac350b125a
commit
c395e805cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151627
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user