Plug unnecessary fp assignments in kern_fcntl.

No functional changes.
This commit is contained in:
Mateusz Guzik 2014-09-05 23:56:25 +00:00
parent d9257d8b57
commit 64196a9996

View File

@ -509,7 +509,7 @@ kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
case F_GETFD:
FILEDESC_SLOCK(fdp);
if ((fp = fget_locked(fdp, fd)) == NULL) {
if (fget_locked(fdp, fd) == NULL) {
FILEDESC_SUNLOCK(fdp);
error = EBADF;
break;
@ -522,7 +522,7 @@ kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
case F_SETFD:
FILEDESC_XLOCK(fdp);
if ((fp = fget_locked(fdp, fd)) == NULL) {
if (fget_locked(fdp, fd) == NULL) {
FILEDESC_XUNLOCK(fdp);
error = EBADF;
break;