svn commit: r187687 - head/sys/contrib/pf/net

Ed Schouten ed at FreeBSD.org
Sun Jan 25 06:00:01 PST 2009


Author: ed
Date: Sun Jan 25 14:00:00 2009
New Revision: 187687
URL: http://svn.freebsd.org/changeset/base/187687

Log:
  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

Modified:
  head/sys/contrib/pf/net/pf_ioctl.c

Modified: head/sys/contrib/pf/net/pf_ioctl.c
==============================================================================
--- head/sys/contrib/pf/net/pf_ioctl.c	Sun Jan 25 12:07:43 2009	(r187686)
+++ head/sys/contrib/pf/net/pf_ioctl.c	Sun Jan 25 14:00:00 2009	(r187687)
@@ -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__ */


More information about the svn-src-head mailing list