Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2009 14:00:00 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187687 - head/sys/contrib/pf/net
Message-ID:  <200901251400.n0PE00SF019391@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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__ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901251400.n0PE00SF019391>