* free() checks if its argument is NULL. Remove duplicate checks.
* Remove duplicate free(ovcopy).
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
conf_uname, fdt_strerror(noffset));
}
- if (conf_uname_copy)
- free(conf_uname_copy);
+ free(conf_uname_copy);
return noffset;
}
}
fdt_pack(base);
len = fdt_totalsize(base);
-
- free(ovcopy);
- ovcopy = NULL;
}
#else
printf("config with overlays but CONFIG_OF_LIBFDT_OVERLAY not set\n");
*fit_uname_configp = fit_uname_config;
#ifdef CONFIG_OF_LIBFDT_OVERLAY
- if (ovcopy)
- free(ovcopy);
+ free(ovcopy);
#endif
- if (fit_uname_config_copy)
- free(fit_uname_config_copy);
+ free(fit_uname_config_copy);
return fdt_noffset;
}
#endif