summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-04-08 15:15:53 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-04-08 15:15:53 +0000
commitb5c88cc30493c9a649fa2bf6c581a4df4e41ed64 (patch)
tree2d39a89f89da8968f25702e065b80e19e71f2678 /sys/dev
parent8f71facea78e9b3ec103bdbac5161488dfb0c158 (diff)
fix parenthesis
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_vge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_vge.c b/sys/dev/pci/if_vge.c
index 3680c564ed2..debc85bd2bb 100644
--- a/sys/dev/pci/if_vge.c
+++ b/sys/dev/pci/if_vge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vge.c,v 1.9 2005/04/08 13:36:48 brad Exp $ */
+/* $OpenBSD: if_vge.c,v 1.10 2005/04/08 15:15:52 brad Exp $ */
/* $FreeBSD: if_vge.c,v 1.3 2004/09/11 22:13:25 wpaul Exp $ */
/*
* Copyright (c) 2004
@@ -1122,13 +1122,13 @@ vge_rxeof(struct vge_softc *sc)
/* Do RX checksumming */
/* Check IP header checksum */
- if (rxctl & VGE_RDCTL_IPPKT) &&
+ if ((rxctl & VGE_RDCTL_IPPKT) &&
(rxctl & VGE_RDCTL_IPCSUMOK))
m->m_pkthdr.csum |= M_IPV4_CSUM_IN_OK;
/* Check TCP/UDP checksum */
if (rxctl & (VGE_RDCTL_TCPPKT|VGE_RDCTL_UDPPKT) &&
- rxctl & VGE_RDCTL_PROTOCSUMOK) {
+ (rxctl & VGE_RDCTL_PROTOCSUMOK))
m->m_pkthdr.csum |= M_TCP_CSUM_IN_OK | M_UDP_CSUM_IN_OK;
#ifdef VGE_VLAN