summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-11-09 09:55:43 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-11-09 09:55:43 +0000
commit1f31c60b75143093d8ec6e83cdbd86b67d7aebcb (patch)
treed93177f9cb7691b09347737ec29f4e58e8f15a06
parente743d36d38ebee91a4265c14c5734f86fb45f456 (diff)
uninitialized value, caused by a typo.
Found by LLVM/Clang Static Analyzer. ok damien@
-rw-r--r--sys/dev/pci/if_wpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c
index 6077184d14a..8f329f6a1ad 100644
--- a/sys/dev/pci/if_wpi.c
+++ b/sys/dev/pci/if_wpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wpi.c,v 1.69 2008/11/08 18:42:49 damien Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.70 2008/11/09 09:55:42 chl Exp $ */
/*-
* Copyright (c) 2006-2008
@@ -1075,7 +1075,7 @@ wpi_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg)
break;
case IEEE80211_S_RUN:
- if ((error == wpi_run(sc)) != 0) {
+ if ((error = wpi_run(sc)) != 0) {
printf("%s: could not move to run state\n",
sc->sc_dev.dv_xname);
return error;