diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-07-07 14:50:03 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-07-07 14:50:03 +0000 |
commit | b4037951b8516155c924b4b8c4687d2b984cba2d (patch) | |
tree | e90e138e1e2f01dda2ebd1612a8ff03cd095d08e /sys/netmpls | |
parent | 9ac3bd9baa17fdf062e37d07ab8645dcce306664 (diff) |
Remove duplicate mtod(). No need to do it twice since the mbuf is not
modified in between.
Diffstat (limited to 'sys/netmpls')
-rw-r--r-- | sys/netmpls/mpls_output.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netmpls/mpls_output.c b/sys/netmpls/mpls_output.c index d7fabc5db8f..f2025764dfe 100644 --- a/sys/netmpls/mpls_output.c +++ b/sys/netmpls/mpls_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_output.c,v 1.10 2010/06/02 15:41:07 claudio Exp $ */ +/* $OpenBSD: mpls_output.c,v 1.11 2010/07/07 14:50:02 claudio Exp $ */ /* * Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org> @@ -117,9 +117,7 @@ mpls_output(struct ifnet *ifp0, struct mbuf *m, struct sockaddr *dst, if (ifp != NULL) break; - shim = mtod(m, struct shim_hdr *); smpls->smpls_label = shim->shim_label & MPLS_LABEL_MASK; - rt = rtalloc1(smplstosa(smpls), RT_REPORT, 0); if (rt == NULL) { /* no entry for this label */ |