summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_event.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-06-02 13:21:21 +0000
committerpjd <pjd@FreeBSD.org>2006-06-02 13:21:21 +0000
commit7563ec071e34e5451b569de0913fcc726d6e46ba (patch)
tree5a490f595061cc163ac0bcacc1edf141ed33959c /sys/kern/kern_event.c
parente8fbceff26cae4760c4895bde056ea8102a72e62 (diff)
downloadFreeBSD-src-7563ec071e34e5451b569de0913fcc726d6e46ba.zip
FreeBSD-src-7563ec071e34e5451b569de0913fcc726d6e46ba.tar.gz
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
Diffstat (limited to 'sys/kern/kern_event.c')
-rw-r--r--sys/kern/kern_event.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index 59527d6..dd00ef2 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -813,7 +813,7 @@ findkn:
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 @@ findkn:
done:
KQ_GLOBAL_UNLOCK(&kq_global, haskqglobal);
-done_noglobal:
if (fp != NULL)
fdrop(fp, td);
if (tkn != NULL)
OpenPOWER on IntegriCloud