summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1999-05-24 00:34:10 +0000
committerjb <jb@FreeBSD.org>1999-05-24 00:34:10 +0000
commit5dc5dd6c49b548d44956b2c4f08c2dcc543cbc35 (patch)
tree488582d5eca4e2fc0f3d05da03619931a81a9f27 /sys/kern
parent193d6e9bf9dea32d8f1ccf0305e2e0e8d967ae25 (diff)
downloadFreeBSD-src-5dc5dd6c49b548d44956b2c4f08c2dcc543cbc35.zip
FreeBSD-src-5dc5dd6c49b548d44956b2c4f08c2dcc543cbc35.tar.gz
Remove the test for bdevsw(dev) == NULL from bdevvp() because it fails
if there is no character device associated with the block device. In this case that doesn't matter because bdevvp() doesn't use the character device structure. I can use the pointy bit of the axe too.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_export.c4
-rw-r--r--sys/kern/vfs_subr.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 86d2f6c..f32aaf0 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
- * $Id: vfs_subr.c,v 1.197 1999/05/14 01:29:21 mckusick Exp $
+ * $Id: vfs_subr.c,v 1.198 1999/05/14 20:40:15 luoqi Exp $
*/
/*
@@ -1175,7 +1175,7 @@ bdevvp(dev, vpp)
struct vnode *nvp;
int error;
- if (dev == NODEV || major(dev) >= nblkdev || bdevsw(dev) == NULL) {
+ if (dev == NODEV || major(dev) >= nblkdev) {
*vpp = NULLVP;
return (ENXIO);
}
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 86d2f6c..f32aaf0 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
- * $Id: vfs_subr.c,v 1.197 1999/05/14 01:29:21 mckusick Exp $
+ * $Id: vfs_subr.c,v 1.198 1999/05/14 20:40:15 luoqi Exp $
*/
/*
@@ -1175,7 +1175,7 @@ bdevvp(dev, vpp)
struct vnode *nvp;
int error;
- if (dev == NODEV || major(dev) >= nblkdev || bdevsw(dev) == NULL) {
+ if (dev == NODEV || major(dev) >= nblkdev) {
*vpp = NULLVP;
return (ENXIO);
}
OpenPOWER on IntegriCloud