aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2022-05-19 16:52:02 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2022-06-17 19:35:24 +0000
commit7d2b9eb04c6639961ea745d350bf58879f5e1e02 (patch)
tree7a1b38658340fb0dfa6182ee506418765b8f6567
parentb7af02ed7934850639517eaf42760e1bec4f937d (diff)
downloadsrc-7d2b9eb04c6639961ea745d350bf58879f5e1e02.tar.gz
src-7d2b9eb04c6639961ea745d350bf58879f5e1e02.zip
kqueue: Trim trailing whitespace
MFC after: 1 week (cherry picked from commit 2479e381cd5fe21c1f1c516ee42dfdd1fcc9abfc)
-rw-r--r--sys/kern/kern_event.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index 90acafa8d66b..10959685fdbd 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -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;
@@ -1580,7 +1580,7 @@ findkn:
* note. Don't attempt to coalesce this with an
* existing note.
*/
- ;
+ ;
} else if (kq->kq_knhashmask != 0) {
struct klist *list;
@@ -1701,7 +1701,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.
@@ -2051,8 +2051,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) {
@@ -2065,7 +2065,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);
@@ -2822,7 +2822,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;