svn commit: r360696 - stable/11/sys/dev/urtwn
Dimitry Andric
dim at FreeBSD.org
Wed May 6 17:44:17 UTC 2020
Author: dim
Date: Wed May 6 17:44:17 2020
New Revision: 360696
URL: https://svnweb.freebsd.org/changeset/base/360696
Log:
Fix misleading indentation warning:
sys/dev/urtwn/if_urtwn.c:4183:4: error: misleading indentation; statement is not part of the previous 'for' [-Werror,-Wmisleading-indentation]
if (error != USB_ERR_NORMAL_COMPLETION)
^
sys/dev/urtwn/if_urtwn.c:4180:3: note: previous statement is here
for (i = 0; i < nitems(rtl8192cu_mac); i++)
^
Direct commit to stable/11, since urtwn(4) has been merged into rtwn(4)
in FreeBSD 12 and later (and this code is not in rtwn).
Modified:
stable/11/sys/dev/urtwn/if_urtwn.c
Modified: stable/11/sys/dev/urtwn/if_urtwn.c
==============================================================================
--- stable/11/sys/dev/urtwn/if_urtwn.c Wed May 6 17:42:36 2020 (r360695)
+++ stable/11/sys/dev/urtwn/if_urtwn.c Wed May 6 17:44:17 2020 (r360696)
@@ -4177,11 +4177,12 @@ urtwn_mac_init(struct urtwn_softc *sc)
}
urtwn_write_1(sc, R92C_MAX_AGGR_NUM, 0x07);
} else {
- for (i = 0; i < nitems(rtl8192cu_mac); i++)
+ for (i = 0; i < nitems(rtl8192cu_mac); i++) {
error = urtwn_write_1(sc, rtl8192cu_mac[i].reg,
rtl8192cu_mac[i].val);
if (error != USB_ERR_NORMAL_COMPLETION)
return (EIO);
+ }
}
return (0);
More information about the svn-src-stable-11
mailing list