Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2018 18:08:56 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328407 - head/sys/arm/freescale/imx
Message-ID:  <201801251808.w0PI8uUx093128@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801251808.w0PI8uUx093128>