diff options
| author | pgoyette <pgoyette@NetBSD.org> | 2018-05-08 10:41:56 +0000 |
|---|---|---|
| committer | pgoyette <pgoyette@NetBSD.org> | 2018-05-08 10:41:56 +0000 |
| commit | e42aad37a1a8a2d240dbb2434435bf026bcb4de5 (patch) | |
| tree | 1d1869132bab8a0f65f262f912c096b50f2a6137 /sys/dev/ic | |
| parent | a0395c564a255181f35590056f85ac1ea08e59e7 (diff) | |
Fix mis-placed right paren. kern/53271
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/hme.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index 108530db7ab..361ad4bbd5c 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -1,4 +1,4 @@ -/* $NetBSD: hme.c,v 1.96 2017/05/23 02:19:14 ozaki-r Exp $ */ +/* $NetBSD: hme.c,v 1.97 2018/05/08 10:41:56 pgoyette Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.96 2017/05/23 02:19:14 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.97 2018/05/08 10:41:56 pgoyette Exp $"); /* #define HMEDEBUG */ @@ -753,7 +753,7 @@ hme_get(struct hme_softc *sc, int ri, uint32_t flags) pktlen = m0->m_pkthdr.len - ETHER_HDR_LEN; } else if (ntohs(eh->ether_type) == ETHERTYPE_VLAN) { evh = (struct ether_vlan_header *)eh; - if (ntohs(evh->evl_proto != ETHERTYPE_IP)) + if (ntohs(evh->evl_proto) != ETHERTYPE_IP) goto swcsum; ip = (struct ip *)((char *)eh + ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN); |
