mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
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:
committed by
Alin Jerpelea
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user