diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-01-14 00:07:33 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-01-14 00:07:33 +0000 |
commit | 2fd43776867d34116542f8aabd13aa5a457ad11c (patch) | |
tree | ff43671ec5bc1fafdfb8137fecc9dd5b3a38af7f | |
parent | 0266bc4fff3b9f50badd8cf517f162f80cd73e3c (diff) |
add brackets to avoid an operator precedence bug
ok ratchov@ deraadt@
-rw-r--r-- | sys/dev/pci/eso.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/eso.c b/sys/dev/pci/eso.c index 73aa1b2a3cf..28fc27c3d2c 100644 --- a/sys/dev/pci/eso.c +++ b/sys/dev/pci/eso.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eso.c,v 1.40 2015/05/11 06:46:22 ratchov Exp $ */ +/* $OpenBSD: eso.c,v 1.41 2016/01/14 00:07:32 jsg Exp $ */ /* $NetBSD: eso.c,v 1.48 2006/12/18 23:13:39 kleink Exp $ */ /* @@ -1523,7 +1523,7 @@ eso_allocmem(struct eso_softc *sc, size_t size, size_t align, error = bus_dmamap_load(ed->ed_dmat, ed->ed_map, ed->ed_addr, ed->ed_size, NULL, wait | - (direction == AUMODE_RECORD) ? BUS_DMA_READ : BUS_DMA_WRITE); + ((direction == AUMODE_RECORD) ? BUS_DMA_READ : BUS_DMA_WRITE)); if (error) goto destroy; |