tech-kern archive

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

fdtbus_intr_establish



Am I wrong?


diff --git a/sys/dev/fdt/fdt_intr.c b/sys/dev/fdt/fdt_intr.c
index fb0e56f76f6b..282d2ceb2710 100644
--- a/sys/dev/fdt/fdt_intr.c
+++ b/sys/dev/fdt/fdt_intr.c
@@ -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);


Home | Main Index | Thread Index | Old Index