diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-07-17 11:42:55 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-07-17 11:42:55 +0000 |
| commit | 736869e50baac65b7069be0111fe2f45cd4d4bf1 (patch) | |
| tree | 5b3471bfabd0d9bbf834bd11177594e785aea1a4 /sys/dev | |
| parent | e7dd90f839bb87b1318df92a1aa523c46d534969 (diff) | |
wsmouse(4): KASSERT(a && b) -> KASSERT(a); KASSERT(b)
Better diagnostics. No other functional change.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/wscons/wsmouse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/wscons/wsmouse.c b/sys/dev/wscons/wsmouse.c index 603096cbdd3..91e82132c81 100644 --- a/sys/dev/wscons/wsmouse.c +++ b/sys/dev/wscons/wsmouse.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsmouse.c,v 1.70 2021/09/28 06:14:27 nia Exp $ */ +/* $NetBSD: wsmouse.c,v 1.71 2022/07/17 11:42:55 riastradh Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -104,7 +104,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.70 2021/09/28 06:14:27 nia Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.71 2022/07/17 11:42:55 riastradh Exp $"); #include "wsmouse.h" #include "wsdisplay.h" @@ -602,8 +602,8 @@ wsmouse_repeat(void *v) newdelay = sc->sc_repeat.wr_delay_minimum; else if (newdelay > sc->sc_repeat.wr_delay_minimum) newdelay -= sc->sc_repeat.wr_delay_decrement; - KASSERT(newdelay >= sc->sc_repeat.wr_delay_minimum && - newdelay <= sc->sc_repeat.wr_delay_first); + KASSERT(newdelay >= sc->sc_repeat.wr_delay_minimum); + KASSERT(newdelay <= sc->sc_repeat.wr_delay_first); } /* |
