Module Name: src Committed By: pgoyette Date: Tue May 8 10:41:56 UTC 2018
Modified Files: src/sys/dev/ic: hme.c Log Message: Fix mis-placed right paren. kern/53271 To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97 src/sys/dev/ic/hme.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/hme.c diff -u src/sys/dev/ic/hme.c:1.96 src/sys/dev/ic/hme.c:1.97 --- src/sys/dev/ic/hme.c:1.96 Tue May 23 02:19:14 2017 +++ src/sys/dev/ic/hme.c Tue May 8 10:41:56 2018 @@ -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, ui 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);