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:
parent
5fa6546535
commit
83190e29d3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108064
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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. */
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user