Author: avos
Date: Thu Dec 29 22:36:16 2016
New Revision: 310793
URL: https://svnweb.freebsd.org/changeset/base/310793

Log:
  rtwn: silence compiler warning (-Wmaybe-uninitialized).
  
  Reported by:  adrian

Modified:
  head/sys/dev/rtwn/rtl8812a/r12a_chan.c

Modified: head/sys/dev/rtwn/rtl8812a/r12a_chan.c
==============================================================================
--- head/sys/dev/rtwn/rtl8812a/r12a_chan.c      Thu Dec 29 21:57:16 2016        
(r310792)
+++ head/sys/dev/rtwn/rtl8812a/r12a_chan.c      Thu Dec 29 22:36:16 2016        
(r310793)
@@ -332,7 +332,7 @@ r12a_set_band(struct rtwn_softc *sc, str
 
        /* XXX PATH_B is set by vendor driver. */
        for (i = 0; i < 2; i++) {
-               uint16_t val;
+               uint16_t val = 0;
 
                switch ((swing >> i * 2) & 0x3) {
                case 0:
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to