On Sun, May 28, 2017 at 10:25:14AM +0200, Anton Lindqvist wrote:
> Digging through some old diffs. Any ok's for this one?
ok stsp@
> Tested on amd64.
>
> Index: dsdt.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/acpi/dsdt.c,v
> retrieving revision 1.233
> diff -u -p -r1.233 dsdt.c
> --- dsdt.c 15 Apr 2017 04:54:04 -0000 1.233
> +++ dsdt.c 28 May 2017 08:23:41 -0000
> @@ -1260,7 +1260,7 @@ aml_find_node(struct aml_node *node, con
>
> SIMPLEQ_FOREACH(child, &node->son, sib) {
> nn = child->name;
> - if ((nn = child->name) != NULL) {
> + if (nn != NULL) {
> if (*nn == AMLOP_ROOTCHAR) nn++;
> while (*nn == AMLOP_PARENTPREFIX) nn++;
> if (strcmp(name, nn) == 0) {
>