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
This commit is contained in:
Ed Schouten 2009-01-25 14:00:00 +00:00
parent 95c807cf5e
commit 1f895245a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187687

View File

@ -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__ */