Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix mis-placed right paren. kern/53271



details:   https://anonhg.NetBSD.org/src/rev/47aafb3b9fb6
branches:  trunk
changeset: 322575:47aafb3b9fb6
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue May 08 10:41:56 2018 +0000

description:
Fix mis-placed right paren.  kern/53271

diffstat:

 sys/dev/ic/hme.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a89f897066a1 -r 47aafb3b9fb6 sys/dev/ic/hme.c
--- a/sys/dev/ic/hme.c  Tue May 08 09:45:54 2018 +0000
+++ b/sys/dev/ic/hme.c  Tue May 08 10:41:56 2018 +0000
@@ -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 @@
                        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);



Home | Main Index | Thread Index | Old Index