Fix sense of test in fdtbus_intr_disestablish.

Reported by yarl-baudig on port-arm.
This commit is contained in:
skrll 2018-10-21 05:32:39 +00:00
parent b416cffbd4
commit 88f463399d
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fdt_intr.c,v 1.18 2018/09/06 22:54:05 jmcneill Exp $ */
/* $NetBSD: fdt_intr.c,v 1.19 2018/10/21 05:32:39 skrll Exp $ */
/*-
* Copyright (c) 2015-2018 Jared McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fdt_intr.c,v 1.18 2018/09/06 22:54:05 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: fdt_intr.c,v 1.19 2018/10/21 05:32:39 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -184,7 +184,7 @@ fdtbus_intr_disestablish(int phandle, void *cookie)
}
}
if (ic != NULL)
if (ic == NULL)
panic("%s: interrupt handle not valid", __func__);
return ic->ic_funcs->disestablish(ic->ic_dev, cookie);