Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/allwinner Remove a KASSERT() which is A20-speci...



details:   https://anonhg.NetBSD.org/src/rev/a8e742cb2d75
branches:  trunk
changeset: 815567:a8e742cb2d75
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu May 26 07:45:51 2016 +0000

description:
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.

diffstat:

 sys/arch/arm/allwinner/awin_gpio.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 1f916d3c2db8 -r a8e742cb2d75 sys/arch/arm/allwinner/awin_gpio.c
--- a/sys/arch/arm/allwinner/awin_gpio.c        Thu May 26 07:24:55 2016 +0000
+++ b/sys/arch/arm/allwinner/awin_gpio.c        Thu May 26 07:45:51 2016 +0000
@@ -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 @@
 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));



Home | Main Index | Thread Index | Old Index