[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>
diff --git a/usr/klibc/stdio/fseek.c b/usr/klibc/stdio/fseek.c
index adfcbeb..fe6aeab 100644
--- a/usr/klibc/stdio/fseek.c
+++ b/usr/klibc/stdio/fseek.c
@@ -20,7 +20,6 @@
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;