diff options
author | Thomas Nordin <nordin@cvs.openbsd.org> | 2002-02-15 20:45:33 +0000 |
---|---|---|
committer | Thomas Nordin <nordin@cvs.openbsd.org> | 2002-02-15 20:45:33 +0000 |
commit | 80edccbe704914e50445ba06dae9916169da06df (patch) | |
tree | e583a7e97e91aee6d5d1098a86c0a7e7083bd388 /sys/arch | |
parent | 78c35609b8864cbec8390402ff594ea2b49873b2 (diff) |
Don't cast nonexistent return value from splx to (void). ok art@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/tc/scc.c | 6 | ||||
-rw-r--r-- | sys/arch/amiga/dev/mfc.c | 4 | ||||
-rw-r--r-- | sys/arch/amiga/dev/msc.c | 4 | ||||
-rw-r--r-- | sys/arch/amiga/dev/ser.c | 4 | ||||
-rw-r--r-- | sys/arch/hp300/dev/dca.c | 4 | ||||
-rw-r--r-- | sys/arch/hp300/dev/dcm.c | 4 | ||||
-rw-r--r-- | sys/arch/hp300/dev/mt.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/bugtty.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/cl.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/wl.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/dev/bugtty.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/dev/cl.c | 4 | ||||
-rw-r--r-- | sys/arch/mvmeppc/dev/bugtty.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/autoconf.c | 4 | ||||
-rw-r--r-- | sys/arch/vax/qbus/dhu.c | 16 | ||||
-rw-r--r-- | sys/arch/vax/qbus/dz.c | 12 | ||||
-rw-r--r-- | sys/arch/vax/uba/ts.c | 6 | ||||
-rw-r--r-- | sys/arch/vax/vsa/dc.c | 6 |
18 files changed, 50 insertions, 50 deletions
diff --git a/sys/arch/alpha/tc/scc.c b/sys/arch/alpha/tc/scc.c index b73fac621c5..6ff87cdddd3 100644 --- a/sys/arch/alpha/tc/scc.c +++ b/sys/arch/alpha/tc/scc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scc.c,v 1.11 2002/01/16 20:50:16 miod Exp $ */ +/* $OpenBSD: scc.c,v 1.12 2002/02/15 20:45:29 nordin Exp $ */ /* $NetBSD: scc.c,v 1.28 1996/12/05 01:39:43 cgd Exp $ */ /* @@ -1217,7 +1217,7 @@ sccmctl(dev, bits, how) break; case DMGET: - (void) splx(s); + splx(s); return (mbits); } if (line == SCC_CHANNEL_B) { @@ -1230,7 +1230,7 @@ sccmctl(dev, bits, how) } if ((mbits & DML_DTR) || (sc->scc_softCAR & (1 << line))) sc->scc_tty[line]->t_state |= TS_CARR_ON; - (void) splx(s); + splx(s); return (mbits); } diff --git a/sys/arch/amiga/dev/mfc.c b/sys/arch/amiga/dev/mfc.c index 3d6cd5b62e5..b2f2ac06a8c 100644 --- a/sys/arch/amiga/dev/mfc.c +++ b/sys/arch/amiga/dev/mfc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfc.c,v 1.10 1997/01/16 09:25:01 niklas Exp $ */ +/* $OpenBSD: mfc.c,v 1.11 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: mfc.c,v 1.18 1996/12/23 09:10:23 veego Exp $ */ /* @@ -937,7 +937,7 @@ mfcsmctl(dev, bits, how) ub = ~sc->sc_regs->du_ip; break; } - (void)splx(s); + splx(s); /* XXXX should keep DTR & RTS states in softc? */ bits = TIOCM_DTR | TIOCM_RTS; diff --git a/sys/arch/amiga/dev/msc.c b/sys/arch/amiga/dev/msc.c index eb4d51d4836..742eecf29e8 100644 --- a/sys/arch/amiga/dev/msc.c +++ b/sys/arch/amiga/dev/msc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msc.c,v 1.6 1997/01/16 09:25:04 niklas Exp $ */ +/* $OpenBSD: msc.c,v 1.7 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: msc.c,v 1.13 1996/12/23 09:10:26 veego Exp $ */ /* @@ -1129,7 +1129,7 @@ mscmctl(dev, bits, how) bits = msc->flags; - (void) splx(s); + splx(s); return(bits); } diff --git a/sys/arch/amiga/dev/ser.c b/sys/arch/amiga/dev/ser.c index 6463c9519c8..c912f731ba2 100644 --- a/sys/arch/amiga/dev/ser.c +++ b/sys/arch/amiga/dev/ser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ser.c,v 1.10 2002/01/30 20:45:34 nordin Exp $ */ +/* $OpenBSD: ser.c,v 1.11 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: ser.c,v 1.43 1998/01/12 10:40:11 thorpej Exp $ */ /* @@ -1047,7 +1047,7 @@ sermctl(dev, bits, how) ub = ~ciab.pra; break; } - (void)splx(s); + splx(s); bits = 0; if (ISSET(ub, CIAB_PRA_DTR)) diff --git a/sys/arch/hp300/dev/dca.c b/sys/arch/hp300/dev/dca.c index 11e06aa1345..506484a74ba 100644 --- a/sys/arch/hp300/dev/dca.c +++ b/sys/arch/hp300/dev/dca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dca.c,v 1.13 2001/09/23 07:05:06 millert Exp $ */ +/* $OpenBSD: dca.c,v 1.14 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: dca.c,v 1.35 1997/05/05 20:58:18 thorpej Exp $ */ /* @@ -935,7 +935,7 @@ dcamctl(sc, bits, how) bits = dca->dca_msr; break; } - (void) splx(s); + splx(s); return (bits); } diff --git a/sys/arch/hp300/dev/dcm.c b/sys/arch/hp300/dev/dcm.c index 184ac74c678..e37846cf27f 100644 --- a/sys/arch/hp300/dev/dcm.c +++ b/sys/arch/hp300/dev/dcm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dcm.c,v 1.11 1997/09/14 03:43:03 downsj Exp $ */ +/* $OpenBSD: dcm.c,v 1.12 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: dcm.c,v 1.41 1997/05/05 20:59:16 thorpej Exp $ */ /* @@ -1339,7 +1339,7 @@ dcmmctl(dev, bits, how) dcm->dcm_cr |= CR_MODM; SEM_UNLOCK(dcm); DELAY(10); /* delay until done */ - (void) splx(s); + splx(s); } return (bits); } diff --git a/sys/arch/hp300/dev/mt.c b/sys/arch/hp300/dev/mt.c index a93ad40172e..d8bab8503d2 100644 --- a/sys/arch/hp300/dev/mt.c +++ b/sys/arch/hp300/dev/mt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mt.c,v 1.7 2001/05/01 16:51:10 millert Exp $ */ +/* $OpenBSD: mt.c,v 1.8 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: mt.c,v 1.8 1997/03/31 07:37:29 scottr Exp $ */ /* @@ -509,7 +509,7 @@ spl_mtintr(arg) hpibppclear(sc->sc_hpibno); mtintr(sc); - (void) splx(s); + splx(s); } void @@ -519,7 +519,7 @@ spl_mtstart(arg) int s = splbio(); mtstart(arg); - (void) splx(s); + splx(s); } void diff --git a/sys/arch/mvme68k/dev/bugtty.c b/sys/arch/mvme68k/dev/bugtty.c index 15f3ee7265d..aa88ca53765 100644 --- a/sys/arch/mvme68k/dev/bugtty.c +++ b/sys/arch/mvme68k/dev/bugtty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bugtty.c,v 1.4 1996/06/11 10:17:29 deraadt Exp $ */ +/* $OpenBSD: bugtty.c,v 1.5 2002/02/15 20:45:30 nordin Exp $ */ /* * Copyright (c) 1995 Dale Rahn. @@ -144,7 +144,7 @@ bugttymctl(dev, bits, how) case DMGET: break; } - (void)splx(s); + splx(s); bits = 0; /* proper defaults? */ diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c index 0e887d78b42..a84881a26a4 100644 --- a/sys/arch/mvme68k/dev/cl.c +++ b/sys/arch/mvme68k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.22 2001/06/27 05:44:47 nate Exp $ */ +/* $OpenBSD: cl.c,v 1.23 2002/02/15 20:45:30 nordin Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -511,7 +511,7 @@ int clmctl (dev, bits, how) } break; } - (void)splx(s); + splx(s); #if 0 bits = 0; /* proper defaults? */ diff --git a/sys/arch/mvme68k/dev/wl.c b/sys/arch/mvme68k/dev/wl.c index 53a89050f72..dbfd421bf43 100644 --- a/sys/arch/mvme68k/dev/wl.c +++ b/sys/arch/mvme68k/dev/wl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wl.c,v 1.5 2001/06/27 05:44:48 nate Exp $ */ +/* $OpenBSD: wl.c,v 1.6 2002/02/15 20:45:30 nordin Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -486,7 +486,7 @@ int clmctl (dev, bits, how) } break; } - (void)splx(s); + splx(s); #if 0 bits = 0; /* proper defaults? */ diff --git a/sys/arch/mvme88k/dev/bugtty.c b/sys/arch/mvme88k/dev/bugtty.c index 70bce2af151..38682dcbc68 100644 --- a/sys/arch/mvme88k/dev/bugtty.c +++ b/sys/arch/mvme88k/dev/bugtty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bugtty.c,v 1.9 2001/12/16 23:49:46 miod Exp $ */ +/* $OpenBSD: bugtty.c,v 1.10 2002/02/15 20:45:30 nordin Exp $ */ /* Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1995 Dale Rahn. * All rights reserved. @@ -164,7 +164,7 @@ int case DMGET: break; } - (void)splx(s); + splx(s); bits = 0; /* proper defaults? */ diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c index 3ed083971df..36ccbc0028d 100644 --- a/sys/arch/mvme88k/dev/cl.c +++ b/sys/arch/mvme88k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.20 2002/01/14 21:34:38 miod Exp $ */ +/* $OpenBSD: cl.c,v 1.21 2002/02/15 20:45:30 nordin Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -497,7 +497,7 @@ int clmctl (dev, bits, how) } break; } - (void)splx(s); + splx(s); #if 0 bits = 0; /* proper defaults? */ diff --git a/sys/arch/mvmeppc/dev/bugtty.c b/sys/arch/mvmeppc/dev/bugtty.c index 0b919b28a54..6a7a8350a23 100644 --- a/sys/arch/mvmeppc/dev/bugtty.c +++ b/sys/arch/mvmeppc/dev/bugtty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bugtty.c,v 1.2 2001/11/06 22:45:54 miod Exp $ */ +/* $OpenBSD: bugtty.c,v 1.3 2002/02/15 20:45:30 nordin Exp $ */ /* Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1995 Dale Rahn. * All rights reserved. @@ -153,7 +153,7 @@ bugttymctl(dev, bits, how) case DMGET: break; } - (void)splx(s); + splx(s); bits = 0; /* proper defaults? */ diff --git a/sys/arch/sparc/sparc/autoconf.c b/sys/arch/sparc/sparc/autoconf.c index d0c2c336793..c9ba0bc7899 100644 --- a/sys/arch/sparc/sparc/autoconf.c +++ b/sys/arch/sparc/sparc/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.47 2002/01/16 20:50:17 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.48 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: autoconf.c,v 1.73 1997/07/29 09:41:53 fair Exp $ */ /* @@ -1269,7 +1269,7 @@ mainbus_attach(parent, dev, aux) if (strcmp(cp, "zs") == 0) autoconf_nzs++; if (/*audio &&*/ autoconf_nzs >= 2) /*XXX*/ - (void) splx(11 << 8); /*XXX*/ + splx(11 << 8); /*XXX*/ #endif oca.ca_bustype = BUS_MAIN; (void) config_found(dev, (void *)&oca, mbprint); diff --git a/sys/arch/vax/qbus/dhu.c b/sys/arch/vax/qbus/dhu.c index 69ba4cd0271..dcdff248727 100644 --- a/sys/arch/vax/qbus/dhu.c +++ b/sys/arch/vax/qbus/dhu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhu.c,v 1.2 2002/01/16 20:50:17 miod Exp $ */ +/* $OpenBSD: dhu.c,v 1.3 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: dhu.c,v 1.17 2000/01/24 02:40:28 matt Exp $ */ /* * Copyright (c) 1996 Ken C. Wellsch. All rights reserved. @@ -381,7 +381,7 @@ dhuopen(dev, flag, mode, p) s = spltty(); DHU_WRITE_BYTE(DHU_UBA_CSR, DHU_CSR_RXIE | line); sc->sc_dhu[line].dhu_modem = DHU_READ_WORD(DHU_UBA_STAT); - (void) splx(s); + splx(s); tp = sc->sc_dhu[line].dhu_tty; @@ -413,7 +413,7 @@ dhuopen(dev, flag, mode, p) if (error) break; } - (void) splx(s); + splx(s); if (error) return (error); return ((*linesw[tp->t_line].l_open)(dev, tp)); @@ -583,7 +583,7 @@ dhustop(tp, flag) if (!(tp->t_state & TS_TTSTOP)) tp->t_state |= TS_FLUSH; } - (void) splx(s); + splx(s); } static void @@ -645,7 +645,7 @@ dhustart(tp) DHU_READ_WORD(DHU_UBA_TBUFAD2) | DHU_TBUFAD2_DMA_START); } out: - (void) splx(s); + splx(s); return; } @@ -736,7 +736,7 @@ dhuparam(tp, t) DHU_WRITE_WORD(DHU_UBA_LNCTRL, lnctrl); - (void) splx(s); + splx(s); return (0); } @@ -816,7 +816,7 @@ dhumctl(sc, line, bits, how) break; case DMGET: - (void) splx(s); + splx(s); return (mbits); } @@ -837,6 +837,6 @@ dhumctl(sc, line, bits, how) DHU_WRITE_WORD(DHU_UBA_LNCTRL, lnctrl); - (void) splx(s); + splx(s); return (mbits); } diff --git a/sys/arch/vax/qbus/dz.c b/sys/arch/vax/qbus/dz.c index 018476a174b..d31dfe75d8f 100644 --- a/sys/arch/vax/qbus/dz.c +++ b/sys/arch/vax/qbus/dz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dz.c,v 1.7 2002/01/16 20:50:17 miod Exp $ */ +/* $OpenBSD: dz.c,v 1.8 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: dz.c,v 1.23 2000/06/04 02:14:12 matt Exp $ */ /* * Copyright (c) 1996 Ken C. Wellsch. All rights reserved. @@ -329,7 +329,7 @@ dzopen(dev_t dev, int flag, int mode, struct proc *p) if (error) break; } - (void) splx(s); + splx(s); if (error) return (error); return ((*linesw[tp->t_line].l_open)(dev, tp)); @@ -558,7 +558,7 @@ dzparam(struct tty *tp, struct termios *t) DZ_WRITE_WORD(dr_lpr, lpr); - (void) splx(s); + splx(s); return (0); } @@ -613,7 +613,7 @@ dzmctl(struct dz_softc *sc, int line, int bits, int how) break; case DMGET: - (void) splx(s); + splx(s); return (mbits); } @@ -631,7 +631,7 @@ dzmctl(struct dz_softc *sc, int line, int bits, int how) DZ_WRITE_BYTE(dr_break, sc->sc_brk); } - (void) splx(s); + splx(s); return (mbits); } @@ -692,7 +692,7 @@ dzscan(void *arg) sc->sc_rxint = 0; } - (void) splx(s); + splx(s); timeout_add(&dz_timeout, hz); return; } diff --git a/sys/arch/vax/uba/ts.c b/sys/arch/vax/uba/ts.c index 61cf74b5959..6af1c7de714 100644 --- a/sys/arch/vax/uba/ts.c +++ b/sys/arch/vax/uba/ts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ts.c,v 1.5 2002/01/16 20:50:17 miod Exp $ */ +/* $OpenBSD: ts.c,v 1.6 2002/02/15 20:45:30 nordin Exp $ */ /* $NetBSD: ts.c,v 1.11 1997/01/11 11:34:43 ragge Exp $ */ /*- @@ -1124,11 +1124,11 @@ tsopen (dev, flag, type, p) s = splbio (); if (sc->sc_state < ST_RUNNING) { /* XXX */ printf ("%s not running.\n", sc->sc_dev.dv_xname); - (void) splx (s); + splx(s); sc->sc_openf = 0; return (ENXIO); } - (void) splx (s); + splx(s); /* * check if transport is really online. diff --git a/sys/arch/vax/vsa/dc.c b/sys/arch/vax/vsa/dc.c index 2080bef1320..746b206d73c 100644 --- a/sys/arch/vax/vsa/dc.c +++ b/sys/arch/vax/vsa/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.5 2002/01/16 20:50:17 miod Exp $ */ +/* $OpenBSD: dc.c,v 1.6 2002/02/15 20:45:31 nordin Exp $ */ /* $NetBSD: dc.c,v 1.4 1996/10/13 03:36:10 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -842,7 +842,7 @@ dcmctl(dev, bits, how) break; case DMGET: - (void) splx(s); + splx(s); return (mbits); } switch (unit & 03) { @@ -863,7 +863,7 @@ dcmctl(dev, bits, how) } if ((mbits & DML_DTR) && (dcsoftCAR[unit >> 2] & b)) dc_tty[unit]->t_state |= TS_CARR_ON; - (void) splx(s); + splx(s); return (mbits); } |