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

Chris Johns chrisj at rtems.org
Fri Oct 8 23:19:10 UTC 2021


OK to push.

On 9/10/21 5:45 am, Ryan Long wrote:
> 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 + ')';
>              }
> 


More information about the devel mailing list