diff options
author | eadler <eadler@FreeBSD.org> | 2013-03-04 02:21:34 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-03-04 02:21:34 +0000 |
commit | a0bd41720afb55b501ddff2c3bbd7f50a7c0ba1a (patch) | |
tree | 9fbde80138cb4e753ffa688e707cb19a0cfa193f /sys/compat/linprocfs | |
parent | ed67ac528d559ab7d3f138a9f4994fc34c829b6f (diff) | |
download | FreeBSD-src-a0bd41720afb55b501ddff2c3bbd7f50a7c0ba1a.zip FreeBSD-src-a0bd41720afb55b501ddff2c3bbd7f50a7c0ba1a.tar.gz |
Remove check for NULL prior to free(9) and m_freem(9).
Approved by: cperciva (mentor)
Diffstat (limited to 'sys/compat/linprocfs')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index d86da04..bb21d8a 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -386,8 +386,7 @@ linprocfs_domtab(PFS_FILL_ARGS) sbuf_printf(sb, " 0 0\n"); } mtx_unlock(&mountlist_mtx); - if (flep != NULL) - free(flep, M_TEMP); + free(flep, M_TEMP); return (error); } @@ -447,8 +446,7 @@ linprocfs_dopartitions(PFS_FILL_ARGS) } g_topology_unlock(); - if (flep != NULL) - free(flep, M_TEMP); + free(flep, M_TEMP); return (error); } |