diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-04-10 19:02:27 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-04-10 19:02:27 +0000 |
commit | 166f7023162ff70faad0851831fe9fe81380dcb0 (patch) | |
tree | 6052c4aafed5665d8938f11fd8abf93c3e9414ff /sys/kern | |
parent | 3c0cfca3c6421636e3760f1d47dcba265f4551bd (diff) |
remove duplicate check for uio_resid == 0 in
spec_read();
ok pedro@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/spec_vnops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c index 9a68d9ea1fb..183b66b7fde 100644 --- a/sys/kern/spec_vnops.c +++ b/sys/kern/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.38 2007/01/16 17:52:18 thib Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.39 2007/04/10 19:02:26 thib Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -261,8 +261,6 @@ spec_read(v) return (error); case VBLK: - if (uio->uio_resid == 0) - return (0); if (uio->uio_offset < 0) return (EINVAL); bsize = BLKDEV_IOSIZE; |