From a8e583250be6a24fa75a5f8c04928c58356f91a6 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 3 Apr 2013 18:07:08 +0000 Subject: Fix a typo in the bge_ape_lock_init() function. From David Imhoff. ok dlg@ sthen@ --- sys/dev/pci/if_bge.c | 4 ++-- 1 file 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); -- cgit v1.2.3