mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-26 00:01:48 +02:00
spl: fit: constify the output parameter of spl_fit_get_image_name()
There is no need for it to be non-constant. Making it constant, allows to return constant string without warning. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
47818e23a2
commit
c1648d056e
@ -46,7 +46,7 @@ __weak ulong board_spl_fit_size_align(ulong size)
|
|||||||
*/
|
*/
|
||||||
static int spl_fit_get_image_name(const void *fit, int images,
|
static int spl_fit_get_image_name(const void *fit, int images,
|
||||||
const char *type, int index,
|
const char *type, int index,
|
||||||
char **outname)
|
const char **outname)
|
||||||
{
|
{
|
||||||
const char *name, *str;
|
const char *name, *str;
|
||||||
__maybe_unused int node;
|
__maybe_unused int node;
|
||||||
@ -101,7 +101,7 @@ static int spl_fit_get_image_name(const void *fit, int images,
|
|||||||
static int spl_fit_get_image_node(const void *fit, int images,
|
static int spl_fit_get_image_node(const void *fit, int images,
|
||||||
const char *type, int index)
|
const char *type, int index)
|
||||||
{
|
{
|
||||||
char *str;
|
const char *str;
|
||||||
int err;
|
int err;
|
||||||
int node;
|
int node;
|
||||||
|
|
||||||
@ -387,7 +387,7 @@ static int spl_fit_record_loadable(const void *fit, int images, int index,
|
|||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
#if !CONFIG_IS_ENABLED(FIT_IMAGE_TINY)
|
#if !CONFIG_IS_ENABLED(FIT_IMAGE_TINY)
|
||||||
char *name;
|
const char *name;
|
||||||
int node;
|
int node;
|
||||||
|
|
||||||
ret = spl_fit_get_image_name(fit, images, "loadables",
|
ret = spl_fit_get_image_name(fit, images, "loadables",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user