From ccb6e7cd5aefa130c472d9f982c5e37c4d1d8fb8 Mon Sep 17 00:00:00 2001 From: yongari Date: Tue, 2 Apr 2013 00:57:54 +0000 Subject: [PATCH] Fix a typo. Reported by: David Imhoff via brad@OpenBSD Tested by: hrs Reviewed by: davidch --- sys/dev/bge/if_bge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index cf1a240f03ec..49b8e2f54cf4 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -680,7 +680,7 @@ bge_ape_lock_init(struct bge_softc *sc) bit = BGE_APE_LOCK_GRANT_DRIVER0; break; default: - if (sc->bge_func_addr != 0) + if (sc->bge_func_addr == 0) bit = BGE_APE_LOCK_GRANT_DRIVER0; else bit = (1 << sc->bge_func_addr);