diff options
| author | christos <christos@NetBSD.org> | 2008-07-28 15:28:27 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2008-07-28 15:28:27 +0000 |
| commit | a3d2246423dc2217a2829f4d6f1cb5567d2457ba (patch) | |
| tree | 74ba6632a2bd5351fad1a9407816957aafac30a9 /sys/dev | |
| parent | 6a47db887e26dfed1935dcef7f48449aa005e2be (diff) | |
lint wins again :-) From Anon Ymous:
- fix a mis-placed parenthesis.
- fix assignment to the wrong variable.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/if_iwn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c index dd9bf6ae962..efff252577f 100644 --- a/sys/dev/pci/if_iwn.c +++ b/sys/dev/pci/if_iwn.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_iwn.c,v 1.12 2008/07/26 15:10:34 christos Exp $ */ +/* $NetBSD: if_iwn.c,v 1.13 2008/07/28 15:28:27 christos Exp $ */ /*- * Copyright (c) 2007 @@ -18,7 +18,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.12 2008/07/26 15:10:34 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.13 2008/07/28 15:28:27 christos Exp $"); /* @@ -1208,7 +1208,7 @@ iwn_load_firmware(struct iwn_softc *sc) int error; /* load firmware image from disk */ - if ((error = firmware_open("if_iwn","iwlwifi-4965.ucode", &fw) != 0)) { + if ((error = firmware_open("if_iwn","iwlwifi-4965.ucode", &fw)) != 0) { aprint_error_dev(sc->sc_dev, "could not read firmware file\n"); goto fail1; } @@ -3810,7 +3810,7 @@ iwn_init(struct ifnet *ifp) ifp->if_flags |= IFF_RUNNING; if (ic->ic_opmode != IEEE80211_M_MONITOR) { - if (ic->ic_opmode != IEEE80211_ROAMING_MANUAL) + if (ic->ic_roaming != IEEE80211_ROAMING_MANUAL) ieee80211_new_state(ic, IEEE80211_S_SCAN, -1); } else |
