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:
Ian Lepore 2018-01-25 18:08:56 +00:00
parent 4ee8f6457c
commit 5b810fe4a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328407

View File

@ -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