svn commit: r328407 - head/sys/arm/freescale/imx

Ian Lepore ian at FreeBSD.org
Thu Jan 25 18:08:57 UTC 2018


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


More information about the svn-src-all mailing list