[PATCH 3/3] cpukit/libmisc/rtems-fdt: Fix of unreachable statement in rtems-fdt.c

Joel Sherrill joel at rtems.org
Tue Jun 29 20:11:06 UTC 2021


OK with code. Commit message needs correction per suggestions in other
patches in this series.

--joel

On Tue, Jun 29, 2021 at 2:54 PM Harrison Edward Gerber
<gerberhe11 at gmail.com> wrote:
>
> See Also CID 1437638
>
> Closes #4462
> ---
>  cpukit/libmisc/rtems-fdt/rtems-fdt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cpukit/libmisc/rtems-fdt/rtems-fdt.c b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
> index 5580d415e2..b1bb26572d 100644
> --- a/cpukit/libmisc/rtems-fdt/rtems-fdt.c
> +++ b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
> @@ -163,7 +163,7 @@ rtems_fdt_init_index (rtems_fdt_handle* fdt, rtems_fdt_blob* blob)
>    }
>
>    names = calloc(1, total_name_memory);
> -  if (!entries)
> +  if (!names)
>    {
>      free(entries);
>      return -RTEMS_FDT_ERR_NO_MEMORY;
> --
> 2.25.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list