Plug unnecessary fp assignments in kern_fcntl.
No functional changes.
This commit is contained in:
parent
d9257d8b57
commit
64196a9996
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user