Module Name:    src
Committed By:   bouyer
Date:           Thu May 26 07:45:51 UTC 2016

Modified Files:
        src/sys/arch/arm/allwinner: awin_gpio.c

Log Message:
Remove a KASSERT() which is A20-specific, as well as the local variable
used here.
Fix "error: unused variable 'grp'" for non-DIAGNOSTIC kernels,
reported by Rin Okuyama.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/arm/allwinner/awin_gpio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/allwinner/awin_gpio.c
diff -u src/sys/arch/arm/allwinner/awin_gpio.c:1.21 src/sys/arch/arm/allwinner/awin_gpio.c:1.22
--- src/sys/arch/arm/allwinner/awin_gpio.c:1.21	Wed May 11 18:33:40 2016
+++ src/sys/arch/arm/allwinner/awin_gpio.c	Thu May 26 07:45:51 2016
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.21 2016/05/11 18:33:40 bouyer Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.22 2016/05/26 07:45:51 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -934,11 +934,9 @@ awin_gpio_pin_ctl(void *cookie, int pin,
 static void
 awin_gpio_pin_irqen(void *cookie, int pin, bool enable)
 {
-	struct awin_gpio_pin_group * const grp = cookie;
 	uint32_t enabled;
 	struct awin_gpio_softc *sc = &awin_gpio_sc;
 
-	KASSERT(grp->grp_index == 7);
 	mutex_enter(&sc->sc_intr_lock);
 	enabled = bus_space_read_4(sc->sc_bst, sc->sc_eint_bsh,
 	    INT_OFFSET(AWIN_PIO_INT_CTL_REG));

Reply via email to