Skip to content

Commit

Permalink
watchdog: Use static const char * const where possible
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Joe Perches authored and Wim Van Sebroeck committed Oct 28, 2010
1 parent 641912f commit a2b89cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/machzwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit a2b89cd

Please sign in to comment.