diff options
Diffstat (limited to 'newlib/libc/stdio/wbuf.c')
-rw-r--r-- | newlib/libc/stdio/wbuf.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/stdio/wbuf.c b/newlib/libc/stdio/wbuf.c index 33457f0d0..f9197ea9e 100644 --- a/newlib/libc/stdio/wbuf.c +++ b/newlib/libc/stdio/wbuf.c @@ -54,11 +54,7 @@ _DEFUN(__swbuf_r, (ptr, c, fp), fp->_w = fp->_lbfsize; if (cantwrite (ptr, fp)) - { - fp->_flags |= __SERR; - ptr->_errno = EBADF; - return EOF; - } + return EOF; c = (unsigned char) c; ORIENT (fp, -1); |