svn commit: r310793 - head/sys/dev/rtwn/rtl8812a
Andriy Voskoboinyk
avos at FreeBSD.org
Thu Dec 29 22:36:17 UTC 2016
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:
More information about the svn-src-all
mailing list