Module Name: src Committed By: christos Date: Wed Feb 1 14:33:10 UTC 2017
Modified Files: src/sys/arch/atari/vme: leo.c Log Message: PR/51933: David Binderman: Boolean confusion To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/atari/vme/leo.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/atari/vme/leo.c diff -u src/sys/arch/atari/vme/leo.c:1.21 src/sys/arch/atari/vme/leo.c:1.22 --- src/sys/arch/atari/vme/leo.c:1.21 Fri Jul 25 04:10:32 2014 +++ src/sys/arch/atari/vme/leo.c Wed Feb 1 09:33:10 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: leo.c,v 1.21 2014/07/25 08:10:32 dholland Exp $ */ +/* $NetBSD: leo.c,v 1.22 2017/02/01 14:33:10 christos Exp $ */ /*- * Copyright (c) 1997 maximum entropy <entr...@zippy.bernstein.com> @@ -47,7 +47,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: leo.c,v 1.21 2014/07/25 08:10:32 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: leo.c,v 1.22 2017/02/01 14:33:10 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -333,9 +333,9 @@ leo_scroll(struct leo_softc *sc, int scr if ((scroll < 0) || (scroll > 255)) return EINVAL; bus_space_write_1(sc->sc_iot, sc->sc_ioh, LEO_REG_MSBSCROLL, - (scroll >> 6) && 0xff); + (scroll >> 6) & 0xff); bus_space_write_1(sc->sc_iot, sc->sc_ioh, LEO_REG_LSBSCROLL, - (scroll << 2) && 0xff); + (scroll << 2) & 0xff); return 0; }