summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2013-04-03 18:07:07 +0000
committerbrad <brad@openbsd.org>2013-04-03 18:07:07 +0000
commitc70b992de2bbe3b4499894886c2de4e69b64514f (patch)
tree7c22d5de4c73c47539da77e89e4d6ce364861b33
parenthandle larger time_t types; toss some unused code (diff)
downloadwireguard-openbsd-c70b992de2bbe3b4499894886c2de4e69b64514f.tar.xz
wireguard-openbsd-c70b992de2bbe3b4499894886c2de4e69b64514f.zip
Fix a typo in the bge_ape_lock_init() function.
From David Imhoff. ok dlg@ sthen@
-rw-r--r--sys/dev/pci/if_bge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 3433b5130c6..1dc1e4fd6e2 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.325 2013/03/20 02:46:33 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.326 2013/04/03 18:07:07 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -510,7 +510,7 @@ bge_ape_lock_init(struct bge_softc *sc)
bit = BGE_APE_LOCK_GRANT_DRIVER0;
break;
default:
- if (pa->pa_function != 0)
+ if (pa->pa_function == 0)
bit = BGE_APE_LOCK_GRANT_DRIVER0;
else
bit = (1 << pa->pa_function);