Don't TAILQ_INIT kq_head twice, once is enough.
This commit is contained in:
parent
7028d20d07
commit
1c58509c25
@ -395,7 +395,6 @@ kqueue(struct thread *td, struct kqueue_args *uap)
|
||||
fp->f_flag = FREAD | FWRITE;
|
||||
fp->f_type = DTYPE_KQUEUE;
|
||||
fp->f_ops = &kqueueops;
|
||||
TAILQ_INIT(&kq->kq_head);
|
||||
fp->f_data = kq;
|
||||
FILE_UNLOCK(fp);
|
||||
fdrop(fp, td);
|
||||
|
Loading…
Reference in New Issue
Block a user