kqueue: Trim trailing whitespace

MFC after:		1 week
This commit is contained in:
Dmitry Chagin 2022-05-19 19:52:02 +03:00
parent 47a57144af
commit 2479e381cd

View File

@ -892,7 +892,7 @@ filt_timerdetach(struct knote *kn)
static void
filt_timertouch(struct knote *kn, struct kevent *kev, u_long type)
{
struct kq_timer_cb_data *kc;
struct kq_timer_cb_data *kc;
struct kqueue *kq;
sbintime_t to;
int error;
@ -929,7 +929,7 @@ filt_timertouch(struct knote *kn, struct kevent *kev, u_long type)
kn->kn_status &= ~KN_ACTIVE;
kn->kn_data = 0;
KQ_UNLOCK(kq);
/* Reschedule timer based on new data/fflags */
kn->kn_sfflags = kev->fflags;
kn->kn_sdata = kev->data;
@ -967,9 +967,9 @@ static int
filt_userattach(struct knote *kn)
{
/*
/*
* EVFILT_USER knotes are not attached to anything in the kernel.
*/
*/
kn->kn_hook = NULL;
if (kn->kn_fflags & NOTE_TRIGGER)
kn->kn_hookid = 1;
@ -1587,7 +1587,7 @@ findkn:
* note. Don't attempt to coalesce this with an
* existing note.
*/
;
;
} else if (kq->kq_knhashmask != 0) {
struct klist *list;
@ -1709,7 +1709,7 @@ findkn:
done_ev_add:
/*
* We can get here with kn->kn_knlist == NULL. This can happen when
* the initial attach event decides that the event is "completed"
* the initial attach event decides that the event is "completed"
* already, e.g., filt_procattach() is called on a zombie process. It
* will call filt_proc() which will remove it from the list, and NULL
* kn_knlist.
@ -2059,8 +2059,8 @@ retry:
KQ_LOCK(kq);
KQ_GLOBAL_UNLOCK(&kq_global, haskqglobal);
if (kn->kn_flags & (EV_CLEAR | EV_DISPATCH)) {
/*
* Manually clear knotes who weren't
/*
* Manually clear knotes who weren't
* 'touch'ed.
*/
if (touch == 0 && kn->kn_flags & EV_CLEAR) {
@ -2073,7 +2073,7 @@ retry:
kq->kq_count--;
} else
TAILQ_INSERT_TAIL(&kq->kq_head, kn, kn_tqe);
kn->kn_status &= ~KN_SCAN;
kn_leave_flux(kn);
kn_list_unlock(knl);
@ -2829,7 +2829,7 @@ knote_free(struct knote *kn)
/*
* Register the kev w/ the kq specified by fd.
*/
int
int
kqfd_register(int fd, struct kevent *kev, struct thread *td, int mflag)
{
struct kqueue *kq;