summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-04-03 18:07:08 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-04-03 18:07:08 +0000
commita8e583250be6a24fa75a5f8c04928c58356f91a6 (patch)
treeda15e6c07d1011eae9edfd35d15cda344521499d
parent85af8d6625977f740aad9aebe28adca86782cffb (diff)
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);