summaryrefslogtreecommitdiff
path: root/sys/net/if_mpe.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-07-13 12:41:47 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-07-13 12:41:47 +0000
commit9bc2e3272110f0fc03393c1cfded8084bc816f7b (patch)
treefed74fdba35555f8d459d09820d01d793a56445a /sys/net/if_mpe.c
parentbf8127e4a65737f54016c4523bd63ba85a6d5f8e (diff)
dont initialise ifp->if_snd.ifq_maxlen, and then follow it by
IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen). the first was deprecated by the use of IFQ_SET_MAXLEN.
Diffstat (limited to 'sys/net/if_mpe.c')
-rw-r--r--sys/net/if_mpe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index 1495d8201d7..c8b34787765 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.15 2009/01/28 22:18:44 michele Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.16 2009/07/13 12:41:46 dlg Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -101,7 +101,6 @@ mpe_clone_create(struct if_clone *ifc, int unit)
ifp->if_output = mpeoutput;
ifp->if_start = mpestart;
ifp->if_type = IFT_MPLS;
- ifp->if_snd.ifq_maxlen = ifqmaxlen;
ifp->if_hdrlen = MPE_HDRLEN;
IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
IFQ_SET_READY(&ifp->if_snd);