From: Joe Perches Date: Tue, 14 Sep 2010 04:23:59 +0000 (-0700) Subject: watchdog: Use static const char * const where possible X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2b89cd85ed55029400521a93dde868ac7150b31;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 2d118cf022fc..edffe68e3d2f 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]); }