From: kettenis Date: Thu, 6 May 2021 20:35:21 +0000 (+0000) Subject: Fix bogus return statement. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6fe6e29c4685ee4aa60913c147e086f4f0758070;p=openbsd Fix bogus return statement. From miod@ --- diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index aa67cb359ec..e1aa05e61cb 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com.c,v 1.173 2020/08/14 18:14:11 jcs Exp $ */ +/* $OpenBSD: com.c,v 1.174 2021/05/06 20:35:21 kettenis Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -1609,9 +1609,9 @@ com_write_reg(struct com_softc *sc, bus_size_t reg, uint8_t value) reg <<= sc->sc_reg_shift; if (sc->sc_reg_width == 4) - return bus_space_write_4(sc->sc_iot, sc->sc_ioh, reg, value); + bus_space_write_4(sc->sc_iot, sc->sc_ioh, reg, value); else - return bus_space_write_1(sc->sc_iot, sc->sc_ioh, reg, value); + bus_space_write_1(sc->sc_iot, sc->sc_ioh, reg, value); } #ifdef COM_CONSOLE @@ -1636,9 +1636,9 @@ comcn_write_reg(bus_size_t reg, uint8_t value) reg <<= comcons_reg_shift; if (comcons_reg_width == 4) - return bus_space_write_4(comconsiot, comconsioh, reg, value); + bus_space_write_4(comconsiot, comconsioh, reg, value); else - return bus_space_write_1(comconsiot, comconsioh, reg, value); + bus_space_write_1(comconsiot, comconsioh, reg, value); } #endif