1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-11 14:10:34 +00:00

Do not return(foo()) in void function.

Submitted by:	marius@alchemy.franken.de
MFC after:	3 days
This commit is contained in:
Semen Ustimenko 2002-12-18 22:53:24 +00:00
parent 5fa6546535
commit 83190e29d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108064
9 changed files with 25 additions and 23 deletions

View File

@ -100,7 +100,7 @@ exca_read(struct exca_softc *sc, int reg)
static __inline void
exca_write(struct exca_softc *sc, int reg, uint8_t val)
{
return (bus_space_write_1(sc->bst, sc->bsh, sc->offset + reg, val));
bus_space_write_1(sc->bst, sc->bsh, sc->offset + reg, val);
}
static __inline void

View File

@ -102,9 +102,9 @@ static void
port_wr(struct resource *port, int off, u_int8_t data)
{
if (port)
return bus_space_write_1(rman_get_bustag(port),
rman_get_bushandle(port),
off, data);
bus_space_write_1(rman_get_bustag(port),
rman_get_bushandle(port),
off, data);
}
static int
@ -116,7 +116,7 @@ io_rd(struct ad1816_info *ad1816, int reg)
static void
io_wr(struct ad1816_info *ad1816, int reg, u_int8_t data)
{
return port_wr(ad1816->io_base, reg, data);
port_wr(ad1816->io_base, reg, data);
}
static void

View File

@ -155,9 +155,9 @@ port_rd(struct resource *port, int off)
static void
port_wr(struct resource *port, int off, u_int8_t data)
{
return bus_space_write_1(rman_get_bustag(port),
rman_get_bushandle(port),
off, data);
bus_space_write_1(rman_get_bustag(port),
rman_get_bushandle(port),
off, data);
}
static int

View File

@ -198,9 +198,9 @@ static void
port_wr(struct resource *port, int off, u_int8_t data)
{
if (port)
return bus_space_write_1(rman_get_bustag(port),
rman_get_bushandle(port),
off, data);
bus_space_write_1(rman_get_bustag(port),
rman_get_bushandle(port),
off, data);
}
static int
@ -214,7 +214,7 @@ static void
io_wr(struct mss_info *mss, int reg, u_int8_t data)
{
if (mss->bd_flags & BD_F_MSS_OFFSET) reg -= 4;
return port_wr(mss->io_base, reg, data);
port_wr(mss->io_base, reg, data);
}
static void

View File

@ -136,7 +136,7 @@ port_rd(struct resource *port, int off)
static void
port_wr(struct resource *port, int off, u_int8_t data)
{
return bus_space_write_1(rman_get_bustag(port), rman_get_bushandle(port), off, data);
bus_space_write_1(rman_get_bustag(port), rman_get_bushandle(port), off, data);
}
static int

View File

@ -127,7 +127,7 @@ port_rd(struct resource *port, int off)
static void
port_wr(struct resource *port, int off, u_int8_t data)
{
return bus_space_write_1(rman_get_bustag(port), rman_get_bushandle(port), off, data);
bus_space_write_1(rman_get_bustag(port), rman_get_bushandle(port), off, data);
}
static int

View File

@ -146,9 +146,9 @@ sb_rd(struct resource *io, int reg)
static void
sb_wr(struct resource *io, int reg, u_int8_t val)
{
return bus_space_write_1(rman_get_bustag(io),
rman_get_bushandle(io),
reg, val);
bus_space_write_1(rman_get_bustag(io),
rman_get_bushandle(io),
reg, val);
}
static int

View File

@ -479,7 +479,7 @@ uartsio_readport(sc_p scp, int off)
static void
uartsio_writeport(sc_p scp, int off, u_int8_t value)
{
return bus_space_write_1(rman_get_bustag(scp->io), rman_get_bushandle(scp->io), off, value);
bus_space_write_1(rman_get_bustag(scp->io), rman_get_bushandle(scp->io), off, value);
}
/* Allocates resources other than IO ports. */

View File

@ -184,15 +184,17 @@ fm801_rd(struct fm801_info *fm801, int regno, int size)
static void
fm801_wr(struct fm801_info *fm801, int regno, u_int32_t data, int size)
{
switch(size) {
case 1:
return bus_space_write_1(fm801->st, fm801->sh, regno, data);
bus_space_write_1(fm801->st, fm801->sh, regno, data);
break;
case 2:
return bus_space_write_2(fm801->st, fm801->sh, regno, data);
bus_space_write_2(fm801->st, fm801->sh, regno, data);
break;
case 4:
return bus_space_write_4(fm801->st, fm801->sh, regno, data);
default:
return;
bus_space_write_4(fm801->st, fm801->sh, regno, data);
break;
}
}