summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-04 21:41:18 +0000
committerarchie <archie@FreeBSD.org>1998-12-04 21:41:18 +0000
commit4f36a36aa4df35f0ff3a275b941e1bbeeae304e1 (patch)
treed4b002063c33aba188bcb2f7cc04b373aaeda27c /sys
parent51724fdc92c592145a864e0c36ca03c3387bd417 (diff)
downloadFreeBSD-src-4f36a36aa4df35f0ff3a275b941e1bbeeae304e1.zip
FreeBSD-src-4f36a36aa4df35f0ff3a275b941e1bbeeae304e1.tar.gz
Fix typo: expression needs parentheses
PR: 8280 (3/3 patches contained in this PR) Submitted by: Sakari Jalovaara <sja@tekla.fi>
Diffstat (limited to 'sys')
-rw-r--r--sys/pci/ide_pci.c6
1 files changed, 3 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud