1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

major(something) can never become NODEV.

This commit is contained in:
Poul-Henning Kamp 1999-05-09 13:13:52 +00:00
parent 61d9c46c46
commit 0a346dab99
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46796

View File

@ -13,7 +13,7 @@
* bad that happens because of using this software isn't the responsibility
* of the author. This software is distributed AS-IS.
*
* $Id: vfs_aio.c,v 1.48 1999/05/06 20:00:25 phk Exp $
* $Id: vfs_aio.c,v 1.49 1999/05/08 06:39:46 phk Exp $
*/
/*
@ -927,7 +927,6 @@ aio_qphysio(p, aiocbe)
struct filedesc *fdp;
struct aio_liojob *lj;
int fd;
int majordev;
int s;
int cnt;
dev_t dev;
@ -958,8 +957,7 @@ aio_qphysio(p, aiocbe)
return -1;
}
majordev = major(vp->v_rdev);
if (majordev == NODEV) {
if (vp->v_rdev == NODEV) {
return -1;
}