Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/dev Fix the unused fix



details:   https://anonhg.NetBSD.org/src/rev/8545d35d7bb1
branches:  trunk
changeset: 816321:8545d35d7bb1
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jun 30 08:51:06 2016 +0000

description:
Fix the unused fix

diffstat:

 sys/arch/hpcmips/dev/plumpcmcia.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r fe60a3832d33 -r 8545d35d7bb1 sys/arch/hpcmips/dev/plumpcmcia.c
--- a/sys/arch/hpcmips/dev/plumpcmcia.c Thu Jun 30 06:56:27 2016 +0000
+++ b/sys/arch/hpcmips/dev/plumpcmcia.c Thu Jun 30 08:51:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: plumpcmcia.c,v 1.27 2014/03/26 17:53:36 christos Exp $ */
+/*     $NetBSD: plumpcmcia.c,v 1.28 2016/06/30 08:51:06 skrll Exp $ */
 
 /*
  * Copyright (c) 1999, 2000 UCHIYAMA Yasushi. All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plumpcmcia.c,v 1.27 2014/03/26 17:53:36 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plumpcmcia.c,v 1.28 2016/06/30 08:51:06 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -844,6 +844,7 @@
        bus_space_tag_t regt = ph->ph_regt;
        bus_space_handle_t regh = ph->ph_regh;
        plumreg_t reg;
+       void *ih __diagused;
        
        /* enable CARD DETECT ENABLE only */
        plum_conf_write(regt, regh, PLUM_PCMCIA_CSCINT,
@@ -855,7 +856,7 @@
        plum_conf_write(regt, regh, PLUM_PCMCIA_GLOBALCTRL, reg);
        
        /* install interrupt handler (don't fail) */
-       plum_intr_establish(sc->sc_pc, irq, IST_EDGE, IPL_TTY,
+       ih = plum_intr_establish(sc->sc_pc, irq, IST_EDGE, IPL_TTY,
            plum_csc_intr, ph);
        KASSERT(ih != 0);
 }



Home | Main Index | Thread Index | Old Index