summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-09-20 00:49:33 +0300
committerSimon Glass <sjg@chromium.org>2021-11-29 02:51:51 +0300
commitad4e0100541eb8a19de00f56bda10be576a7cde6 (patch)
tree3437aa4cbf19a07b3c554f0ebaba9c0e9ae274c2 /cmd
parent6b03448713c20dd71ab6cc8e2c1c326db0148169 (diff)
downloadu-boot-ad4e0100541eb8a19de00f56bda10be576a7cde6.tar.xz
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 <sjg@chromium.org> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/sf.c2
1 files changed, 1 insertions, 1 deletions
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",