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:
parent
8b0d42275e
commit
d02354c766
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue