diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-09-12 01:28:30 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-09-12 01:28:30 +0000 |
commit | 14a37fbdb2bbb396636c2508775087c0e8e2b3e0 (patch) | |
tree | 92333df877950577aa358d47c1d12c38dddca821 /sys | |
parent | f12391556302ab6d63daed00e514b6cef394ced3 (diff) |
knf for the switch statement in tun_dev_kqfilter.
no functional change.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_tun.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index a405633de5f..d59916970e2 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.c,v 1.188 2019/09/12 01:27:02 dlg Exp $ */ +/* $OpenBSD: if_tun.c,v 1.189 2019/09/12 01:28:29 dlg Exp $ */ /* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */ /* @@ -1043,16 +1043,16 @@ tun_dev_kqfilter(struct tun_softc *tp, struct knote *kn) TUNDEBUG(("%s: tunkqfilter\n", ifp->if_xname)); switch (kn->kn_filter) { - case EVFILT_READ: - klist = &tp->tun_rsel.si_note; - kn->kn_fop = &tunread_filtops; - break; - case EVFILT_WRITE: - klist = &tp->tun_wsel.si_note; - kn->kn_fop = &tunwrite_filtops; - break; - default: - return (EINVAL); + case EVFILT_READ: + klist = &tp->tun_rsel.si_note; + kn->kn_fop = &tunread_filtops; + break; + case EVFILT_WRITE: + klist = &tp->tun_wsel.si_note; + kn->kn_fop = &tunwrite_filtops; + break; + default: + return (EINVAL); } kn->kn_hook = (caddr_t)tp; |