From 02013ff886f211bf7f0a34c734b69ef70aaebacf Mon Sep 17 00:00:00 2001 From: John Birrell Date: Mon, 24 May 1999 00:34:10 +0000 Subject: 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. --- sys/kern/vfs_export.c | 4 ++-- sys/kern/vfs_subr.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 86d2f6ce3c76..f32aaf0f044b 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 86d2f6ce3c76..f32aaf0f044b 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); } -- cgit v1.3