diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-05-15 17:45:40 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-05-15 17:45:40 -0700 |
commit | b0abe7cd311cba23a960d62d0abed91f798710d2 (patch) | |
tree | 179076632e91b2d5aff300888bc25a4cd16e9a79 | |
parent | 9f9bd8abebf381e787328cbd455d401cfd3cc88a (diff) | |
download | klibc-b0abe7cd311cba23a960d62d0abed91f798710d2.tar.gz |
[klibc] fseek: remove redundant clearing of obytes
We have already called __fflush() and gotten success, so obytes must
be zero. That is also why we don't need to adjust the where argument
for obytes in the SEEK_CUR case.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | usr/klibc/stdio/fseek.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr/klibc/stdio/fseek.c b/usr/klibc/stdio/fseek.c index adfcbeb7a8f78..fe6aeab5a961d 100644 --- a/usr/klibc/stdio/fseek.c +++ b/usr/klibc/stdio/fseek.c @@ -20,7 +20,6 @@ __extern int fseek(FILE *file, off_t where, int whence) if (__likely(rv != (off_t)-1)) { f->pub._IO_eof = false; f->ibytes = 0; - f->obytes = 0; return 0; } else { f->pub._IO_error = true; |