summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ic/lpt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/lpt.c b/sys/dev/ic/lpt.c
index 8d623901128..235940e3868 100644
--- a/sys/dev/ic/lpt.c
+++ b/sys/dev/ic/lpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpt.c,v 1.10 2013/06/12 19:07:40 deraadt Exp $ */
+/* $OpenBSD: lpt.c,v 1.11 2013/12/09 04:21:58 deraadt Exp $ */
/* $NetBSD: lpt.c,v 1.42 1996/10/21 22:41:14 thorpej Exp $ */
/*
@@ -433,8 +433,7 @@ lpt_activate(struct device *self, int act)
switch (act) {
case DVACT_SUSPEND:
- if (timeout_pending(&sc->sc_wakeup_tmo))
- timeout_del(&sc->sc_wakeup_tmo);
+ timeout_del(&sc->sc_wakeup_tmo);
break;
case DVACT_RESUME:
bus_space_write_1(sc->sc_iot, sc->sc_ioh, lpt_control, LPC_NINIT);