You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2020/07/30 14:16:39 UTC

[incubator-nuttx] 07/08: libs/libc/modlib/modlib_sections.c: Remove a redundant assignment

This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit b6316e9a03d3ec9143441f1498bc56a109dc945a
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Jul 30 17:00:20 2020 +0900

    libs/libc/modlib/modlib_sections.c: Remove a redundant assignment
    
    Found by clang-check:
    
    modlib/modlib_sections.c:93:3: warning: Value stored to 'buffer' is never read
      buffer    = loadinfo->iobuffer;
      ^           ~~~~~~~~~~~~~~~~~~
    1 warning generated.
---
 libs/libc/modlib/modlib_sections.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libs/libc/modlib/modlib_sections.c b/libs/libc/modlib/modlib_sections.c
index 86785af..b2a36ba 100644
--- a/libs/libc/modlib/modlib_sections.c
+++ b/libs/libc/modlib/modlib_sections.c
@@ -90,7 +90,6 @@ static inline int modlib_sectname(FAR struct mod_loadinfo_s *loadinfo,
 
   /* Loop until we get the entire section name into memory */
 
-  buffer    = loadinfo->iobuffer;
   bytesread = 0;
 
   for (; ; )