Source-Changes-HG archive

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

[src/trunk]: src/sys/net Remove unnecessary if_type setting



details:   https://anonhg.NetBSD.org/src/rev/edb4dbda9e54
branches:  trunk
changeset: 339331:edb4dbda9e54
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Jul 14 08:15:41 2015 +0000

description:
Remove unnecessary if_type setting

if_type is set as IFT_SLIP below.

diffstat:

 sys/net/if_strip.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r dcaad0df1abf -r edb4dbda9e54 sys/net/if_strip.c
--- a/sys/net/if_strip.c        Tue Jul 14 08:06:44 2015 +0000
+++ b/sys/net/if_strip.c        Tue Jul 14 08:15:41 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_strip.c,v 1.98 2015/07/14 08:06:44 ozaki-r Exp $    */
+/*     $NetBSD: if_strip.c,v 1.99 2015/07/14 08:15:41 ozaki-r Exp $    */
 /*     from: NetBSD: if_sl.c,v 1.38 1996/02/13 22:00:23 christos Exp $ */
 
 /*
@@ -87,7 +87,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_strip.c,v 1.98 2015/07/14 08:06:44 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_strip.c,v 1.99 2015/07/14 08:15:41 ozaki-r Exp $");
 
 #include "opt_inet.h"
 
@@ -368,7 +368,6 @@
        sc->sc_if.if_softc = sc;
        sc->sc_if.if_mtu = SLMTU;
        sc->sc_if.if_flags = 0;
-       sc->sc_if.if_type = IFT_OTHER;
 #if 0
        sc->sc_if.if_flags |= SC_AUTOCOMP /* | IFF_POINTOPOINT | IFF_MULTICAST*/;
 #endif



Home | Main Index | Thread Index | Old Index