Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa Use boolean logical and operation on booleans, r...



details:   https://anonhg.NetBSD.org/src/rev/3a883b8d5900
branches:  trunk
changeset: 821338:3a883b8d5900
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Feb 01 19:10:33 2017 +0000

description:
Use boolean logical and operation on booleans, rather than bitwise and.

>From David Binderman in PR kern/51936.

diffstat:

 sys/dev/isa/gus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 75b3d7391939 -r 3a883b8d5900 sys/dev/isa/gus.c
--- a/sys/dev/isa/gus.c Wed Feb 01 18:47:24 2017 +0000
+++ b/sys/dev/isa/gus.c Wed Feb 01 19:10:33 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gus.c,v 1.110 2016/07/11 11:31:50 msaitoh Exp $        */
+/*     $NetBSD: gus.c,v 1.111 2017/02/01 19:10:33 jakllsch Exp $       */
 
 /*-
  * Copyright (c) 1996, 1999, 2008 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gus.c,v 1.110 2016/07/11 11:31:50 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gus.c,v 1.111 2017/02/01 19:10:33 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1027,7 +1027,7 @@
        printf(", %dKB memory\n", sc->sc_dsize);
 
        /* A GUS MAX should always have a CODEC installed */
-       if ((sc->sc_revision >= 10) & !(HAS_CODEC(sc)))
+       if ((sc->sc_revision >= 10) && !(HAS_CODEC(sc)))
                printf("%s: WARNING: did not attach CODEC on MAX\n",
                    device_xname(sc->sc_dev));
 



Home | Main Index | Thread Index | Old Index