[PATCH rtems-tools v1] rtems-tld.cpp: Remove logically dead code

Ryan Long ryan.long at oarcorp.com
Fri Oct 8 18:45:35 UTC 2021


CID 1399595: Logically dead code in generate_traces().

Closes #4525
---
 linkers/rtems-tld.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/linkers/rtems-tld.cpp b/linkers/rtems-tld.cpp
index 7b42e45..bc1ad89 100644
--- a/linkers/rtems-tld.cpp
+++ b/linkers/rtems-tld.cpp
@@ -1266,10 +1266,7 @@ namespace rld
                 ds += " + ";
               else
                 ds_added = true;
-              if (drs_added)
-                drs += " + ";
-              else
-                drs_added = true;
+              drs_added = true;
               ds += "sizeof(" + sig.ret + ')';
               drs += "sizeof(" + sig.ret + ')';
             }
-- 
1.8.3.1



More information about the devel mailing list