libs/libc/stdio/lib_libfread.c: Remove a redundant assignment

Found by clang-check:

stdio/lib_libfread.c:75:7: warning: Value stored to 'bytes_read' is never read
      bytes_read = -1;
      ^            ~~
1 warning generated.
This commit is contained in:
YAMAMOTO Takashi 2020-07-30 16:52:09 +09:00 committed by Alin Jerpelea
parent 8b0d42275e
commit d02354c766
1 changed files with 0 additions and 1 deletions

View File

@ -72,7 +72,6 @@ ssize_t lib_fread(FAR void *ptr, size_t count, FAR FILE *stream)
if (!stream || (stream->fs_oflags & O_RDOK) == 0)
{
set_errno(EBADF);
bytes_read = -1;
}
else
{