From adaa84b5b57cf328ccf6e345b38ec6706c692895 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 26 Nov 2013 20:33:21 +0000 Subject: 1 << 31 cleanup. Eitan Adler pointed out that there has been a resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu --- sys/arch/i386/pci/pciide_gcsc_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/pci/pciide_gcsc_reg.h b/sys/arch/i386/pci/pciide_gcsc_reg.h index 1e9a5148505..2609897690b 100644 --- a/sys/arch/i386/pci/pciide_gcsc_reg.h +++ b/sys/arch/i386/pci/pciide_gcsc_reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide_gcsc_reg.h,v 1.1 2009/01/04 10:37:40 jsg Exp $ */ +/* $OpenBSD: pciide_gcsc_reg.h,v 1.2 2013/11/26 20:33:13 deraadt Exp $ */ /* $NetBSD: gcscide.c,v 1.6 2007/10/06 07:21:03 xtraeme Exp $ */ /*- @@ -55,7 +55,7 @@ * and data per drive, while Format 0 selects the slowest speed * of the two drives. */ -#define GCSC_ATAC_PIO_FORMAT (1 << 31) /* PIO Mode Format 1 */ +#define GCSC_ATAC_PIO_FORMAT (1U << 31) /* PIO Mode Format 1 */ /* * DMA_SEL (bit 20): sets Ultra DMA mode (if enabled) or Multi-word * DMA mode (if disabled). -- cgit v1.2.3