mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 17:54:52 +00:00
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.
This commit is contained in:
parent
4d562a18fc
commit
02013ff886
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47445
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue