Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/vme PR/51933: David Binderman: Boolean confusion
details: https://anonhg.NetBSD.org/src/rev/5abbfdf16aac
branches: trunk
changeset: 351074:5abbfdf16aac
user: christos <christos%NetBSD.org@localhost>
date: Wed Feb 01 14:33:10 2017 +0000
description:
PR/51933: David Binderman: Boolean confusion
diffstat:
sys/arch/atari/vme/leo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r f31a3dbbd5a2 -r 5abbfdf16aac sys/arch/atari/vme/leo.c
--- a/sys/arch/atari/vme/leo.c Wed Feb 01 14:27:37 2017 +0000
+++ b/sys/arch/atari/vme/leo.c Wed Feb 01 14:33:10 2017 +0000
@@ -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 <entropy%zippy.bernstein.com@localhost>
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index