diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-11-29 10:22:31 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-11-29 10:22:31 +0000 |
commit | 60d63461a21e4ba80eae9df4eb31ca666d333c55 (patch) | |
tree | e549fe3dcf07e8dea66ffd4bf09219dedb2508fc /sys/arch/sgi/hpc | |
parent | 2dca8b0475a26898be84df58346e417077abf80f (diff) |
m_free() and m_freem() test for NULL. Simplify callers which had their own
NULL tests.
ok mpi@
Diffstat (limited to 'sys/arch/sgi/hpc')
-rw-r--r-- | sys/arch/sgi/hpc/if_sq.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sgi/hpc/if_sq.c b/sys/arch/sgi/hpc/if_sq.c index 6f2aa7ad2af..b34677074e9 100644 --- a/sys/arch/sgi/hpc/if_sq.c +++ b/sys/arch/sgi/hpc/if_sq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sq.c,v 1.26 2016/04/13 11:34:00 mpi Exp $ */ +/* $OpenBSD: if_sq.c,v 1.27 2016/11/29 10:22:30 jsg Exp $ */ /* $NetBSD: if_sq.c,v 1.42 2011/07/01 18:53:47 dyoung Exp $ */ /* @@ -747,8 +747,7 @@ sq_start(struct ifnet *ifp) */ ifq_set_oactive(&ifp->if_snd); bus_dmamap_unload(sc->sc_dmat, dmamap); - if (m != NULL) - m_freem(m); + m_freem(m); break; } |