Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/wscons wsmouse(4): KASSERT(a && b) -> KASSERT(a); KA...



details:   https://anonhg.NetBSD.org/src/rev/db2e1307bd9c
branches:  trunk
changeset: 368523:db2e1307bd9c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 17 11:42:55 2022 +0000

description:
wsmouse(4): KASSERT(a && b) -> KASSERT(a); KASSERT(b)

Better diagnostics.  No other functional change.

diffstat:

 sys/dev/wscons/wsmouse.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r f29839ada8c0 -r db2e1307bd9c sys/dev/wscons/wsmouse.c
--- a/sys/dev/wscons/wsmouse.c  Sun Jul 17 11:31:47 2022 +0000
+++ b/sys/dev/wscons/wsmouse.c  Sun Jul 17 11:42:55 2022 +0000
@@ -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 @@
                        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);
        }
 
        /*



Home | Main Index | Thread Index | Old Index