summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-10-26 08:53:13 +0000
committerbde <bde@FreeBSD.org>1998-10-26 08:53:13 +0000
commit873d7be4840474ccc52a6f5481204058dab44ca8 (patch)
tree7e9566d796da951b936f251c2be61eea518cef7c /sys/ufs
parent285a46e7e4df7eec29bf44d601fe96e6c1ebd6c0 (diff)
downloadFreeBSD-src-873d7be4840474ccc52a6f5481204058dab44ca8.zip
FreeBSD-src-873d7be4840474ccc52a6f5481204058dab44ca8.tar.gz
Removed redundant bitrotted checks for major numbers instead of updating
them.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_bmap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/ufs/ufs/ufs_bmap.c b/sys/ufs/ufs/ufs_bmap.c
index 8663885..ab88279 100644
--- a/sys/ufs/ufs/ufs_bmap.c
+++ b/sys/ufs/ufs/ufs_bmap.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95
- * $Id: ufs_bmap.c,v 1.21 1998/07/04 20:45:39 julian Exp $
+ * $Id: ufs_bmap.c,v 1.22 1998/08/18 03:54:39 bde Exp $
*/
#include <sys/param.h>
@@ -149,9 +149,7 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp, runb)
*/
devvp = ip->i_devvp;
- if (devvp && devvp->v_type == VBLK &&
- (devvp->v_rdev != NODEV) &&
- (major(devvp->v_rdev) < nblkdev)) {
+ if (devvp != NULL && devvp->v_type == VBLK) {
if (bdevsw[major(devvp->v_rdev)]->d_maxio > MAXPHYS) {
maxrun = MAXPHYS;
vp->v_maxio = MAXPHYS;
OpenPOWER on IntegriCloud