summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2010-08-02 19:36:13 +0000
committerkettenis <kettenis@openbsd.org>2010-08-02 19:36:13 +0000
commitec67ec1357878da0c980c55bc72cdd57d90650b3 (patch)
tree39d34cee36abb1b76e542311db8ec25384ca7acd
parentThere is no reason to call the start function upon resume; the network stack (diff)
downloadwireguard-openbsd-ec67ec1357878da0c980c55bc72cdd57d90650b3.tar.xz
wireguard-openbsd-ec67ec1357878da0c980c55bc72cdd57d90650b3.zip
There is no reason to call the start function upon resume; the network stack
is perfectly capable to get things going again all by itself. ok deraadt@
-rw-r--r--sys/dev/pci/if_bge.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index dbd2abfc83d..562ec0a1efe 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.296 2010/07/27 21:56:11 todd Exp $ */
+/* $OpenBSD: if_bge.c,v 1.297 2010/08/02 19:36:13 kettenis Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -3740,9 +3740,7 @@ bge_power(int why, void *xsc)
if (why == PWR_RESUME) {
ifp = &sc->arpcom.ac_if;
- if (ifp->if_flags & IFF_UP) {
+ if (ifp->if_flags & IFF_UP)
bge_init(xsc);
- bge_start(ifp);
- }
}
}