[PATCH v4 2/5] sf: Use const for the stage name
Heinrich Schuchardt
xypron.glpk at gmx.de
Sat Nov 13 12:15:25 CET 2021
On 9/19/21 23:49, Simon Glass wrote:
> This is not updated at runtime so should be marked const. Update the code
> accordingly.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>
> (no changes since v1)
>
> cmd/sf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cmd/sf.c b/cmd/sf.c
> index eac27ed2d77..15361a4bddf 100644
> --- a/cmd/sf.c
> +++ b/cmd/sf.c
> @@ -394,7 +394,7 @@ enum {
> STAGE_COUNT,
> };
>
> -static char *stage_name[STAGE_COUNT] = {
> +static const char *stage_name[STAGE_COUNT] = {
> "erase",
> "check",
> "write",
>
More information about the U-Boot
mailing list