summaryrefslogtreecommitdiff
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-07-15 22:16:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-07-15 22:16:43 +0000
commit5e8589374c930031aaf4735e952691c378a260b8 (patch)
tree158957edef63bb7cac587a2b4370754b04559bae /sys/net/if_ethersubr.c
parenta763f70dd81e802e555963fb255d7538e879b607 (diff)
m_freem() can handle NULL, do not check for this condition beforehands.
ok stsp mpi
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 10e1c47a483..af99909fc54 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ethersubr.c,v 1.216 2015/07/02 23:15:03 dlg Exp $ */
+/* $OpenBSD: if_ethersubr.c,v 1.217 2015/07/15 22:16:41 deraadt Exp $ */
/* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */
/*
@@ -273,8 +273,7 @@ ether_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
return (if_enqueue(ifp, m));
bad:
- if (m)
- m_freem(m);
+ m_freem(m);
return (error);
}