提交 a2b89cd8 编写于 作者: J Joe Perches 提交者: Wim Van Sebroeck

watchdog: Use static const char * const where possible

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 641912f4
...@@ -388,7 +388,7 @@ static struct notifier_block zf_notifier = { ...@@ -388,7 +388,7 @@ static struct notifier_block zf_notifier = {
static void __init zf_show_action(int act) static void __init zf_show_action(int act)
{ {
char *str[] = { "RESET", "SMI", "NMI", "SCI" }; static const char * const str[] = { "RESET", "SMI", "NMI", "SCI" };
printk(KERN_INFO PFX ": Watchdog using action = %s\n", str[act]); printk(KERN_INFO PFX ": Watchdog using action = %s\n", str[act]);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册