PERFORCE change 157017 for review
Weongyo Jeong
weongyo at FreeBSD.org
Sun Feb 1 18:12:35 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=157017
Change 157017 by weongyo at weongyo_ws on 2009/02/02 02:12:04
don't try to print a variable uninitialized.
Affected files ...
.. //depot/projects/vap/sys/dev/usb/if_uath.c#9 edit
Differences ...
==== //depot/projects/vap/sys/dev/usb/if_uath.c#9 (text+ko) ====
@@ -964,7 +964,7 @@
struct ieee80211_node *ni = vap->iv_bss;
struct uath_vap *uvp = UATH_VAP(vap);
enum ieee80211_state ostate = vap->iv_state;
- int ret;
+ int error;
UATH_LOCK(sc);
switch (sc->sc_state) {
@@ -982,9 +982,10 @@
/* XXX good place? set RTS threshold */
uath_config(sc, CFG_USER_RTS_THRESHOLD, vap->iv_rtsthreshold);
/* XXX bad place */
- if (uath_set_keys(sc, vap) != 0) {
+ error = uath_set_keys(sc, vap);
+ if (error != 0) {
device_printf(sc->sc_dev,
- "could not set crypto keys, error %d\n", ret);
+ "could not set crypto keys, error %d\n", error);
break;
}
if (uath_switch_channel(sc, ni->ni_chan) != 0) {
More information about the p4-projects
mailing list