From d02354c766d7396def75723603f516ae89614a64 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 30 Jul 2020 16:52:09 +0900 Subject: [PATCH] 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. --- libs/libc/stdio/lib_libfread.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/libc/stdio/lib_libfread.c b/libs/libc/stdio/lib_libfread.c index de80754216..6c55f6cd38 100644 --- a/libs/libc/stdio/lib_libfread.c +++ b/libs/libc/stdio/lib_libfread.c @@ -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 {