diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2022-07-02 08:50:43 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2022-07-02 08:50:43 +0000 |
commit | ba9e2da185db87b907ce5e5ab973261b6b71b8d3 (patch) | |
tree | c794dbe2375ac56389d511a6ec35c4e9f244ac82 /sys/dev/sbus | |
parent | f487f43fd3d05d932c6483c4cbeed9667ffcfdf2 (diff) |
Remove unused device poll functions.
Also remove unneeded includes of <sys/poll.h> and <sys/select.h>.
Some addenda from jsg@.
OK miod@ mpi@
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r-- | sys/dev/sbus/magma.c | 12 | ||||
-rw-r--r-- | sys/dev/sbus/spif.c | 8 |
2 files changed, 2 insertions, 18 deletions
diff --git a/sys/dev/sbus/magma.c b/sys/dev/sbus/magma.c index bd564d3ea8c..cc6a624c91a 100644 --- a/sys/dev/sbus/magma.c +++ b/sys/dev/sbus/magma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: magma.c,v 1.34 2022/03/13 13:34:54 mpi Exp $ */ +/* $OpenBSD: magma.c,v 1.35 2022/07/02 08:50:42 visa Exp $ */ /*- * Copyright (c) 1998 Iain Hibbert @@ -1340,7 +1340,6 @@ mtty_param(struct tty *tp, struct termios *t) * mbppread read from mbpp * mbppwrite write to mbpp * mbppioctl do ioctl on mbpp - * mbpppoll do poll on mbpp * mbppkqfilter kqueue on mbpp * mbpp_rw general rw routine * mbpp_timeout rw timeout @@ -1508,15 +1507,6 @@ mbppioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) return (error); } -/* - * poll routine - */ -int -mbpppoll(dev_t dev, int events, struct proc *p) -{ - return (seltrue(dev, events, p)); -} - int mbppkqfilter(dev_t dev, struct knote *kn) { diff --git a/sys/dev/sbus/spif.c b/sys/dev/sbus/spif.c index ceffc6ef139..76d5adca310 100644 --- a/sys/dev/sbus/spif.c +++ b/sys/dev/sbus/spif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spif.c,v 1.26 2022/03/13 13:34:54 mpi Exp $ */ +/* $OpenBSD: spif.c,v 1.27 2022/07/02 08:50:42 visa Exp $ */ /* * Copyright (c) 1999-2002 Jason L. Wright (jason@thought.net) @@ -90,7 +90,6 @@ int sbppread(dev_t, struct uio *, int); int sbppwrite(dev_t, struct uio *, int); int sbpp_rw(dev_t, struct uio *); int spifppcintr(void *); -int sbpppoll(dev_t, int, struct proc *); int sbppkqfilter(dev_t, struct knote *); int sbppioctl(dev_t, u_long, caddr_t, int, struct proc *); @@ -1041,11 +1040,6 @@ sbpp_rw(dev_t dev, struct uio *uio) } int -sbpppoll(dev_t dev, int events, struct proc *p) -{ - return (seltrue(dev, events, p)); -} -int sbppkqfilter(dev_t dev, struct knote *kn) { return (seltrue_kqfilter(dev, kn)); |