diff options
author | mjg <mjg@FreeBSD.org> | 2013-06-28 18:32:46 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2013-06-28 18:32:46 +0000 |
commit | 19b2af52622e036204809e1bbe24aaaedf35061a (patch) | |
tree | d61a6540382ab033d15d638b44e073f67b186d4a | |
parent | 9888acd231f181b7e0579f8e0c29ebd374f7c1ff (diff) | |
download | FreeBSD-src-19b2af52622e036204809e1bbe24aaaedf35061a.zip FreeBSD-src-19b2af52622e036204809e1bbe24aaaedf35061a.tar.gz |
Remove duplicate NULL check in kern_proc_filedesc_out.
No functional changes.
MFC after: 1 week
-rw-r--r-- | sys/kern/kern_descrip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 0d18639..e760fe5 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -3446,9 +3446,8 @@ kern_proc_filedesc_out(struct proc *p, struct sbuf *sb, ssize_t maxlen) break; } FILEDESC_SUNLOCK(fdp); + fddrop(fdp); fail: - if (fdp != NULL) - fddrop(fdp); free(efbuf, M_TEMP); return (error); } |