summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-07-08 19:29:25 +0000
committerderaadt <deraadt@openbsd.org>2010-07-08 19:29:25 +0000
commitfee12cbf457fa4710ea78ab7d2b403dd3bdaf426 (patch)
tree65b5a8006f035c56cc2d147f4d7782cb6780b098
parentmake the buffer big enough to hold a 1500 byte packet. Workaround (mtu (diff)
downloadwireguard-openbsd-fee12cbf457fa4710ea78ab7d2b403dd3bdaf426.tar.xz
wireguard-openbsd-fee12cbf457fa4710ea78ab7d2b403dd3bdaf426.zip
For DVACT_SUSPEND and DVACT_RESUME we should always return success.
-rw-r--r--sys/dev/pckbc/pckbd.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/pckbc/pckbd.c b/sys/dev/pckbc/pckbd.c
index 377be22e6d1..db26455922e 100644
--- a/sys/dev/pckbc/pckbd.c
+++ b/sys/dev/pckbc/pckbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbd.c,v 1.24 2009/11/23 23:22:38 deraadt Exp $ */
+/* $OpenBSD: pckbd.c,v 1.25 2010/07/08 19:29:25 deraadt Exp $ */
/* $NetBSD: pckbd.c,v 1.24 2000/06/05 22:20:57 sommerfeld Exp $ */
/*-
@@ -417,17 +417,15 @@ pckbdattach(parent, self, aux)
int
pckbd_activate(struct device *self, int act)
{
- int rv = 0;
-
switch (act) {
case DVACT_SUSPEND:
- rv = pckbd_enable(self, 0);
+ pckbd_enable(self, 0);
break;
case DVACT_RESUME:
- rv = pckbd_enable(self, 1);
+ pckbd_enable(self, 1);
break;
}
- return (rv);
+ return (0);
}
int