Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/fdt Fix sense of test in fdtbus_intr_disestablish.



details:   https://anonhg.NetBSD.org/src/rev/af935fecf1d5
branches:  trunk
changeset: 836510:af935fecf1d5
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Oct 21 05:32:39 2018 +0000

description:
Fix sense of test in fdtbus_intr_disestablish.

Reported by yarl-baudig on port-arm.

diffstat:

 sys/dev/fdt/fdt_intr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b576db4581f0 -r af935fecf1d5 sys/dev/fdt/fdt_intr.c
--- a/sys/dev/fdt/fdt_intr.c    Sun Oct 21 00:57:38 2018 +0000
+++ b/sys/dev/fdt/fdt_intr.c    Sun Oct 21 05:32:39 2018 +0000
@@ -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@localhost>
@@ -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 @@
                }
        }
 
-       if (ic != NULL)
+       if (ic == NULL)
                panic("%s: interrupt handle not valid", __func__);
 
        return ic->ic_funcs->disestablish(ic->ic_dev, cookie);



Home | Main Index | Thread Index | Old Index