summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2009-02-10 17:10:51 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2009-02-10 17:10:51 +0000
commit981868755d3c065018ba0e44dded9e83d950405b (patch)
treede9bb182e4cb19f4e075d254a24b822d8ac59e54 /sys
parent2c3a6fe4337ea980abcfd12820d34aaa0f5c9e54 (diff)
do not compile with RUN_DEBUG by default
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_run.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c
index c4287af0ab2..a53ea698bc5 100644
--- a/sys/dev/usb/if_run.c
+++ b/sys/dev/usb/if_run.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_run.c,v 1.7 2009/02/06 18:43:22 damien Exp $ */
+/* $OpenBSD: if_run.c,v 1.8 2009/02/10 17:10:50 damien Exp $ */
/*-
* Copyright (c) 2008,2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -69,8 +69,6 @@
#define RUN_DEBUG
#endif
-#define RUN_DEBUG
-
#ifdef RUN_DEBUG
#define DPRINTF(x) do { if (run_debug) printf x; } while (0)
#define DPRINTFN(n, x) do { if (run_debug >= (n)) printf x; } while (0)
@@ -1519,8 +1517,8 @@ run_set_key_cb(struct run_softc *sc, void *arg)
if (!(k->k_flags & IEEE80211_KEY_GROUP) ||
(k->k_flags & IEEE80211_KEY_TX)) {
/* set initial packet number in IV+EIV */
- if ((k->k_cipher == IEEE80211_CIPHER_WEP40 ||
- k->k_cipher == IEEE80211_CIPHER_WEP104)) {
+ if (k->k_cipher == IEEE80211_CIPHER_WEP40 ||
+ k->k_cipher == IEEE80211_CIPHER_WEP104) {
memset(iv, 0, sizeof iv);
iv[3] = sc->sc_ic.ic_def_txkey << 6;
} else {