Fix return style in RD2. Remove bogus return value from a void function
in WR2 (I have no idea why that didn't result in a compile error).
This commit is contained in:
parent
4ee8f6457c
commit
5b810fe4a6
@ -85,14 +85,14 @@ static inline uint16_t
|
||||
RD2(struct imx_wdog_softc *sc, bus_size_t offs)
|
||||
{
|
||||
|
||||
return bus_read_2(sc->sc_res[MEMRES], offs);
|
||||
return (bus_read_2(sc->sc_res[MEMRES], offs));
|
||||
}
|
||||
|
||||
static inline void
|
||||
WR2(struct imx_wdog_softc *sc, bus_size_t offs, uint16_t val)
|
||||
{
|
||||
|
||||
return bus_write_2(sc->sc_res[MEMRES], offs, val);
|
||||
bus_write_2(sc->sc_res[MEMRES], offs, val);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user