Remove confusing done_noglobal label. The KQ_GLOBAL_UNLOCK() macro know
how to handle both situations - when kq_global lock is and is not held. OK'ed by: jmg
This commit is contained in:
parent
e8fbceff26
commit
7563ec071e
@ -813,7 +813,7 @@ kqueue_register(struct kqueue *kq, struct kevent *kev, struct thread *td, int wa
|
||||
if (fp->f_data == kq) {
|
||||
FILEDESC_UNLOCK(fdp);
|
||||
error = EINVAL;
|
||||
goto done_noglobal;
|
||||
goto done;
|
||||
}
|
||||
|
||||
KQ_GLOBAL_LOCK(&kq_global, haskqglobal);
|
||||
@ -954,7 +954,6 @@ kqueue_register(struct kqueue *kq, struct kevent *kev, struct thread *td, int wa
|
||||
|
||||
done:
|
||||
KQ_GLOBAL_UNLOCK(&kq_global, haskqglobal);
|
||||
done_noglobal:
|
||||
if (fp != NULL)
|
||||
fdrop(fp, td);
|
||||
if (tkn != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user