diff options
author | dim <dim@FreeBSD.org> | 2013-12-28 01:33:42 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-28 01:33:42 +0000 |
commit | d72ff8ac8ec1a4a2e96fb3c7b0adb33fced9a1b0 (patch) | |
tree | 05f4e795ae1b9b0ca238d596a0fd36346cd66e70 | |
parent | d66753f8cd8b164964561328a91d142ad5f620b3 (diff) | |
download | FreeBSD-src-d72ff8ac8ec1a4a2e96fb3c7b0adb33fced9a1b0.zip FreeBSD-src-d72ff8ac8ec1a4a2e96fb3c7b0adb33fced9a1b0.tar.gz |
MFC r259869:
In sys/dev/mwl/if_mwl.c, put the static RD4() function under #ifdef
MWL_DEBUG guards, since it only used in DPRINTF statements.
-rw-r--r-- | sys/dev/mwl/if_mwl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/mwl/if_mwl.c b/sys/dev/mwl/if_mwl.c index bf66962..63a3e6b 100644 --- a/sys/dev/mwl/if_mwl.c +++ b/sys/dev/mwl/if_mwl.c @@ -281,11 +281,13 @@ struct mwltxrec { * that all BAR 1 operations are done in the "hal" and * there should be no reference to them here. */ +#ifdef MWL_DEBUG static __inline uint32_t RD4(struct mwl_softc *sc, bus_size_t off) { return bus_space_read_4(sc->sc_io0t, sc->sc_io0h, off); } +#endif static __inline void WR4(struct mwl_softc *sc, bus_size_t off, uint32_t val) |