From 4a0deaef8654226a6deee155c89991cb82ec5e9f Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 25 Jan 2009 14:00:00 +0000 Subject: 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 --- sys/contrib/pf/net/pf_ioctl.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/contrib/pf') 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__ */ -- cgit v1.1