lmb: Make const flag_str[] in lmb_print_region_flags() more const
flag_str[] is a pointer to const. Make it also a const pointer. Improve
a style a bit while a it, to make this line fit 80 characters limit.
No functional change.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
(cherry picked from commit 8ab61628b8)
This commit is contained in:
committed by
Simon Glass
parent
4b07407f94
commit
08e0c6af06
@@ -468,7 +468,8 @@ static int lmb_map_update_notify(phys_addr_t addr, phys_size_t size, u8 op,
|
||||
|
||||
static void lmb_print_region_flags(enum lmb_flags flags)
|
||||
{
|
||||
const char *flag_str[] = { "none", "no-map", "no-overwrite", "no-notify" };
|
||||
const char * const flag_str[] = { "none", "no-map", "no-overwrite",
|
||||
"no-notify" };
|
||||
unsigned int pflags = flags &
|
||||
(LMB_NOMAP | LMB_NOOVERWRITE | LMB_NONOTIFY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user