summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2013-06-28 18:32:46 +0000
committermjg <mjg@FreeBSD.org>2013-06-28 18:32:46 +0000
commit19b2af52622e036204809e1bbe24aaaedf35061a (patch)
treed61a6540382ab033d15d638b44e073f67b186d4a
parent9888acd231f181b7e0579f8e0c29ebd374f7c1ff (diff)
downloadFreeBSD-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.c3
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);
}
OpenPOWER on IntegriCloud