From: Simon Glass Date: Sun, 19 Sep 2021 21:49:33 +0000 (-0600) Subject: sf: Use const for the stage name X-Git-Tag: baikal/mips/sdk5.9~7^2^2~112^2~18^2~19 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=02833beaef9139a462c8262c61de6c1f151f6b6e;p=uboot.git sf: Use const for the stage name This is not updated at runtime so should be marked const. Update the code accordingly. Signed-off-by: Simon Glass Reviewed-by: Jagan Teki Reviewed-by: Heinrich Schuchardt --- diff --git a/cmd/sf.c b/cmd/sf.c index eac27ed2d7..15361a4bdd 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",