diff options
author | phk <phk@FreeBSD.org> | 1999-11-08 09:59:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-11-08 09:59:17 +0000 |
commit | d078ae5ffefc2e21d8abeed4ecb94f3f79e6b562 (patch) | |
tree | 12aa4d2bf9621b15e02836d95264371bd9d38eef /sys/compat/linux/linux_file.c | |
parent | 08dbd4e20b82b1c58904e06e1006833160d84d17 (diff) | |
download | FreeBSD-src-d078ae5ffefc2e21d8abeed4ecb94f3f79e6b562.zip FreeBSD-src-d078ae5ffefc2e21d8abeed4ecb94f3f79e6b562.tar.gz |
simplify check for device.
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r-- | sys/compat/linux/linux_file.c | 2 |
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; |