aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/fseek.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fseek.c')
-rw-r--r--newlib/libc/stdio/fseek.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/newlib/libc/stdio/fseek.c b/newlib/libc/stdio/fseek.c
index 569bad7..06c6665 100644
--- a/newlib/libc/stdio/fseek.c
+++ b/newlib/libc/stdio/fseek.c
@@ -304,12 +304,10 @@ _DEFUN(_fseek_r, (ptr, fp, offset, whence),
/*
* If the target offset is within the current buffer,
* simply adjust the pointers, clear EOF, undo ungetc(),
- * and return. (If the buffer was modified, we have to
- * skip this; see fgetline.c.)
+ * and return.
*/
- if ((fp->_flags & __SMOD) == 0 &&
- target >= curoff && target < curoff + n)
+ if (target >= curoff && target < curoff + n)
{
register int o = target - curoff;