From 4f36a36aa4df35f0ff3a275b941e1bbeeae304e1 Mon Sep 17 00:00:00 2001 From: archie Date: Fri, 4 Dec 1998 21:41:18 +0000 Subject: Fix typo: expression needs parentheses PR: 8280 (3/3 patches contained in this PR) Submitted by: Sakari Jalovaara --- sys/pci/ide_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/pci/ide_pci.c') diff --git a/sys/pci/ide_pci.c b/sys/pci/ide_pci.c index 68df969..670443a 100644 --- a/sys/pci/ide_pci.c +++ b/sys/pci/ide_pci.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ide_pci.c,v 1.13 1998/07/11 07:45:52 bde Exp $ + * $Id: ide_pci.c,v 1.14 1998/07/15 02:32:26 bde Exp $ */ #include "pci.h" @@ -696,8 +696,8 @@ intel_piix_dmainit(struct ide_pci_cookie *cookie, unitno = cookie->ctlr * 2 + cookie->unit; - mask = 1 << unitno + 3 << (16 + unitno * 4); - new = 1 << unitno + 2 << (16 + unitno * 4); + mask = (1 << unitno) + (3 << (16 + unitno * 4)); + new = (1 << unitno) + (2 << (16 + unitno * 4)); pci_conf_write(cookie->tag, 0x48, (pci_conf_read(cookie->tag, 0x48) & ~mask) | new); -- cgit v1.1