summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-11-08 09:59:17 +0000
committerphk <phk@FreeBSD.org>1999-11-08 09:59:17 +0000
commitd078ae5ffefc2e21d8abeed4ecb94f3f79e6b562 (patch)
tree12aa4d2bf9621b15e02836d95264371bd9d38eef /sys/compat
parent08dbd4e20b82b1c58904e06e1006833160d84d17 (diff)
downloadFreeBSD-src-d078ae5ffefc2e21d8abeed4ecb94f3f79e6b562.zip
FreeBSD-src-d078ae5ffefc2e21d8abeed4ecb94f3f79e6b562.tar.gz
simplify check for device.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 16184ff..d14b4a1 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -306,7 +306,7 @@ linux_fcntl(struct proc *p, struct linux_fcntl_args *args)
}
vp = (struct vnode *)fp->f_data;
dev = vn_todev(vp);
- if (vp->v_type != VCHR || dev == NODEV)
+ if (dev == NODEV)
return EINVAL;
if (!(devsw(dev)->d_flags & D_TTY))
return EINVAL;
OpenPOWER on IntegriCloud