summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-12-18 15:59:23 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-12-18 15:59:23 +0000
commitf615504284faf7b72fa2500dd6d8b4250a6685a8 (patch)
tree70fc5828f2a0e44457f8bbc2f6606f85510dca1b /sys/dev/acpi
parent354bee4b1d11c2b4364a25b64e24f42bc19caa4a (diff)
Remove comparison of array which is always non-NULL. Fixes clang warning.
ok jca@ (a while back)
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/dsdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c
index c018d3f60c2..078883256b2 100644
--- a/sys/dev/acpi/dsdt.c
+++ b/sys/dev/acpi/dsdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsdt.c,v 1.227 2016/10/25 06:48:58 pirofti Exp $ */
+/* $OpenBSD: dsdt.c,v 1.228 2016/12/18 15:59:22 kettenis Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
*
@@ -587,7 +587,7 @@ aml_notify_dev(const char *pnpid, int notify_value)
return;
SLIST_FOREACH(pdata, &aml_notify_list, link)
- if (pdata->pnpid && !strcmp(pdata->pnpid, pnpid))
+ if (strcmp(pdata->pnpid, pnpid) == 0)
pdata->cbproc(pdata->node, notify_value, pdata->cbarg);
}