diff options
author | phk <phk@FreeBSD.org> | 1999-05-09 13:13:52 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-09 13:13:52 +0000 |
commit | 5a312ef1f69bdb9b49a3d883f7576df416e75a8c (patch) | |
tree | 67ade3b48e6ed3bac42e4c0f9c0c44124d1f9156 /sys/kern/vfs_aio.c | |
parent | 72107aa299ca5d6cf21fc58bb6428f1d19b6141f (diff) | |
download | FreeBSD-src-5a312ef1f69bdb9b49a3d883f7576df416e75a8c.zip FreeBSD-src-5a312ef1f69bdb9b49a3d883f7576df416e75a8c.tar.gz |
major(something) can never become NODEV.
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index e614631..658edb1 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -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; } |