From 68e57603ac9924bd4733091355ff80f5ba80cdcb Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 4 Nov 2009 16:59:21 +0000 Subject: MFC 197772: When the timeout backoff hits the maximum value, leave it capped at the maximum value rather than setting it to the result of a boolean expression that is always true. --- sys/dev/ppbus/lpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index 1986d56dccb2..1458b8a5366a 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -437,7 +437,7 @@ lptout(void *arg) if (sc->sc_state & OPEN) { sc->sc_backoff++; if (sc->sc_backoff > hz/LPTOUTMAX) - sc->sc_backoff = sc->sc_backoff > hz/LPTOUTMAX; + sc->sc_backoff = hz/LPTOUTMAX; timeout(lptout, (caddr_t)dev, sc->sc_backoff); } else sc->sc_state &= ~TOUT; -- cgit v1.3