From: Joe Perches Date: Tue, 14 Sep 2010 04:23:59 +0000 (-0700) Subject: watchdog: Use static const char * const where possible X-Git-Tag: v2.6.37-rc1~53^2~8 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=a2b89cd85ed55029400521a93dde868ac7150b31;p=net-next-2.6.git watchdog: Use static const char * const where possible Signed-off-by: Joe Perches Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/machzwd.c b/drivers/watchdog/machzwd.c index 2d118cf022f..edffe68e3d2 100644 --- a/drivers/watchdog/machzwd.c +++ b/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]); }