svn commit: r259869 - head/sys/dev/mwl

Dimitry Andric dim at FreeBSD.org
Wed Dec 25 14:48:28 UTC 2013


Author: dim
Date: Wed Dec 25 14:48:27 2013
New Revision: 259869
URL: http://svnweb.freebsd.org/changeset/base/259869

Log:
  In sys/dev/mwl/if_mwl.c, put the static RD4() function under #ifdef
  MWL_DEBUG guards, since it only used in DPRINTF statements.
  
  MFC after:	3 days

Modified:
  head/sys/dev/mwl/if_mwl.c

Modified: head/sys/dev/mwl/if_mwl.c
==============================================================================
--- head/sys/dev/mwl/if_mwl.c	Wed Dec 25 13:57:23 2013	(r259868)
+++ head/sys/dev/mwl/if_mwl.c	Wed Dec 25 14:48:27 2013	(r259869)
@@ -282,11 +282,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)


More information about the svn-src-head mailing list