浏览代码

watchdog: Use static const char * const where possible

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Joe Perches 14 年之前
父节点
当前提交
a2b89cd85e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/watchdog/machzwd.c

+ 1 - 1
drivers/watchdog/machzwd.c

@@ -388,7 +388,7 @@ static struct notifier_block zf_notifier = {
 
 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]);
 }