Author: ian Date: Thu Jan 25 18:08:56 2018 New Revision: 328407 URL: https://svnweb.freebsd.org/changeset/base/328407
Log: 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). Modified: head/sys/arm/freescale/imx/imx_wdog.c Modified: head/sys/arm/freescale/imx/imx_wdog.c ============================================================================== --- head/sys/arm/freescale/imx/imx_wdog.c Thu Jan 25 18:01:46 2018 (r328406) +++ head/sys/arm/freescale/imx/imx_wdog.c Thu Jan 25 18:08:56 2018 (r328407) @@ -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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"