Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/tc Fix and simplify incorrect check for screen blank...



details:   https://anonhg.NetBSD.org/src/rev/6cdc5d0df044
branches:  trunk
changeset: 572430:6cdc5d0df044
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Sun Jan 02 20:41:20 2005 +0000

description:
Fix and simplify incorrect check for screen blanking in WSDISPLAYIO_SVIDEO.

diffstat:

 sys/dev/tc/cfb.c  |  6 +++---
 sys/dev/tc/mfb.c  |  6 +++---
 sys/dev/tc/tfb.c  |  6 +++---
 sys/dev/tc/xcfb.c |  6 +++---
 4 files changed, 12 insertions(+), 12 deletions(-)

diffs (108 lines):

diff -r 70fb434ee9f5 -r 6cdc5d0df044 sys/dev/tc/cfb.c
--- a/sys/dev/tc/cfb.c  Sun Jan 02 19:39:43 2005 +0000
+++ b/sys/dev/tc/cfb.c  Sun Jan 02 20:41:20 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cfb.c,v 1.44 2003/12/20 07:10:00 nisimura Exp $ */
+/* $NetBSD: cfb.c,v 1.45 2005/01/02 20:41:20 mhitch Exp $ */
 
 /*
  * Copyright (c) 1998, 1999 Tohru Nishimura.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cfb.c,v 1.44 2003/12/20 07:10:00 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cfb.c,v 1.45 2005/01/02 20:41:20 mhitch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -399,7 +399,7 @@
 
        case WSDISPLAYIO_SVIDEO:
                turnoff = *(int *)data == WSDISPLAYIO_VIDEO_OFF;
-               if ((sc->sc_blanked == 0) ^ turnoff) {
+               if (sc->sc_blanked != turnoff) {
                        sc->sc_blanked = turnoff;
                        /* XXX later XXX */
                }
diff -r 70fb434ee9f5 -r 6cdc5d0df044 sys/dev/tc/mfb.c
--- a/sys/dev/tc/mfb.c  Sun Jan 02 19:39:43 2005 +0000
+++ b/sys/dev/tc/mfb.c  Sun Jan 02 20:41:20 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfb.c,v 1.41 2003/12/20 07:10:00 nisimura Exp $ */
+/* $NetBSD: mfb.c,v 1.42 2005/01/02 20:41:20 mhitch Exp $ */
 
 /*
  * Copyright (c) 1998, 1999 Tohru Nishimura.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfb.c,v 1.41 2003/12/20 07:10:00 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfb.c,v 1.42 2005/01/02 20:41:20 mhitch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -359,7 +359,7 @@
 
        case WSDISPLAYIO_SVIDEO:
                turnoff = *(int *)data == WSDISPLAYIO_VIDEO_OFF;
-               if ((sc->sc_blanked == 0) ^ turnoff) {
+               if (sc->sc_blanked != turnoff) {
                        sc->sc_blanked = turnoff;
 #if 0  /* XXX later XXX */
        To turn off,
diff -r 70fb434ee9f5 -r 6cdc5d0df044 sys/dev/tc/tfb.c
--- a/sys/dev/tc/tfb.c  Sun Jan 02 19:39:43 2005 +0000
+++ b/sys/dev/tc/tfb.c  Sun Jan 02 20:41:20 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tfb.c,v 1.44 2003/12/20 07:10:01 nisimura Exp $ */
+/* $NetBSD: tfb.c,v 1.45 2005/01/02 20:41:20 mhitch Exp $ */
 
 /*
  * Copyright (c) 1998, 1999 Tohru Nishimura.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tfb.c,v 1.44 2003/12/20 07:10:01 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tfb.c,v 1.45 2005/01/02 20:41:20 mhitch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -433,7 +433,7 @@
 
        case WSDISPLAYIO_SVIDEO:
                turnoff = *(int *)data == WSDISPLAYIO_VIDEO_OFF;
-               if ((sc->sc_blanked == 0) ^ turnoff) {
+               if (sc->sc_blanked != turnoff) {
                        sc->sc_blanked = turnoff;
 #if 0  /* XXX later XXX */             
        To turn off;
diff -r 70fb434ee9f5 -r 6cdc5d0df044 sys/dev/tc/xcfb.c
--- a/sys/dev/tc/xcfb.c Sun Jan 02 19:39:43 2005 +0000
+++ b/sys/dev/tc/xcfb.c Sun Jan 02 20:41:20 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xcfb.c,v 1.36 2003/12/20 07:10:01 nisimura Exp $ */
+/* $NetBSD: xcfb.c,v 1.37 2005/01/02 20:41:20 mhitch Exp $ */
 
 /*
  * Copyright (c) 1998, 1999 Tohru Nishimura.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xcfb.c,v 1.36 2003/12/20 07:10:01 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xcfb.c,v 1.37 2005/01/02 20:41:20 mhitch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -437,7 +437,7 @@
 
        case WSDISPLAYIO_SVIDEO:
                turnoff = *(int *)data == WSDISPLAYIO_VIDEO_OFF;
-               if ((sc->sc_blanked == 0) ^ turnoff) {
+               if (sc->sc_blanked != turnoff) {
                        sc->sc_blanked = turnoff;
                        xcfb_screenblank(sc);
                }



Home | Main Index | Thread Index | Old Index