summaryrefslogtreecommitdiffstats
path: root/sys/fs/ext2fs
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-07-25 16:04:55 +0000
committerpfg <pfg@FreeBSD.org>2013-07-25 16:04:55 +0000
commitb4c061ba1137ccc9e851843568b78f68143be9ae (patch)
tree78f0ee6e03b62b3a256058d404560fe52266fb5a /sys/fs/ext2fs
parent3cce3ff56878674874392576e3759685b4172777 (diff)
downloadFreeBSD-src-b4c061ba1137ccc9e851843568b78f68143be9ae.zip
FreeBSD-src-b4c061ba1137ccc9e851843568b78f68143be9ae.tar.gz
ext2fs: Drop a check that wan't supposed to be in r253651.
MFC after: 1 month
Diffstat (limited to 'sys/fs/ext2fs')
-rw-r--r--sys/fs/ext2fs/ext2_lookup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/fs/ext2fs/ext2_lookup.c b/sys/fs/ext2fs/ext2_lookup.c
index 31d416f..71f1fbe 100644
--- a/sys/fs/ext2fs/ext2_lookup.c
+++ b/sys/fs/ext2fs/ext2_lookup.c
@@ -170,10 +170,7 @@ ext2_readdir(struct vop_readdir_args *ap)
* size is a little larger than DIRBLKSIZ to allow for expansion
* of directory entries, but some callers just use 512.
*/
- if (uio->uio_offset < 0)
- offset = startoffset = uio->uio_offset + DIRBLKSIZ;
- else
- offset = startoffset = uio->uio_offset;
+ offset = startoffset = uio->uio_offset;
startresid = uio->uio_resid;
error = 0;
while (error == 0 && uio->uio_resid > 0 &&
OpenPOWER on IntegriCloud