From 3db65f612eb1c5746fe2c5822454dbb588fffe71 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 1 Feb 2017 14:33:10 +0000 Subject: [PATCH] PR/51933: David Binderman: Boolean confusion --- sys/arch/atari/vme/leo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/atari/vme/leo.c b/sys/arch/atari/vme/leo.c index b6cc55ea12cc..e4e9bd64d921 100644 --- a/sys/arch/atari/vme/leo.c +++ b/sys/arch/atari/vme/leo.c @@ -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 @@ -47,7 +47,7 @@ */ #include -__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 #include @@ -333,9 +333,9 @@ leo_scroll(struct leo_softc *sc, int scroll) 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; }