summaryrefslogtreecommitdiffstats
path: root/sys/contrib/pf
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-01-25 14:00:00 +0000
committered <ed@FreeBSD.org>2009-01-25 14:00:00 +0000
commit4a0deaef8654226a6deee155c89991cb82ec5e9f (patch)
tree2bd866341dbf53e95a85386c8ec827d8b30cb0ca /sys/contrib/pf
parent97295d8b7542439c9b300e61fbcfed8329a93a62 (diff)
downloadFreeBSD-src-4a0deaef8654226a6deee155c89991cb82ec5e9f.zip
FreeBSD-src-4a0deaef8654226a6deee155c89991cb82ec5e9f.tar.gz
Remove unneeded checking for invalid minor numbers from pf(4).
Because it is not possible to access the pf(4) character device through any other device node as the one in devfs, there is no need to check for unknown device minor numbers. Approved by: mlaier
Diffstat (limited to 'sys/contrib/pf')
-rw-r--r--sys/contrib/pf/net/pf_ioctl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c
index 6d509c5..083f7aa 100644
--- a/sys/contrib/pf/net/pf_ioctl.c
+++ b/sys/contrib/pf/net/pf_ioctl.c
@@ -481,16 +481,12 @@ pf_thread_create(void *v)
int
pfopen(struct cdev *dev, int flags, int fmt, struct proc *p)
{
- if (dev2unit(dev) >= 1)
- return (ENXIO);
return (0);
}
int
pfclose(struct cdev *dev, int flags, int fmt, struct proc *p)
{
- if (dev2unit(dev) >= 1)
- return (ENXIO);
return (0);
}
#endif /* __FreeBSD__ */
OpenPOWER on IntegriCloud