From f8847c4eb8f7550c43e2dbc9efaff91434a54fe7 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Sun, 12 Oct 2014 22:25:40 +1100 Subject: [PATCH] arch/x86/kernel/rtc.c: Overzealous usage of 'const' keyword Organization: Altera Praxis Pty Ltd. To: linux-kernel@vger.kernel.org No need to qualify with 'const' no less than three times over. Signed-off-by: Edward O'Callaghan --- arch/x86/kernel/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c index ca9622a..75cf16a 100644 --- a/arch/x86/kernel/rtc.c +++ b/arch/x86/kernel/rtc.c @@ -170,7 +170,7 @@ static struct platform_device rtc_device = { static __init int add_rtc_cmos(void) { #ifdef CONFIG_PNP - static const char * const const ids[] __initconst = + static const char * ids[] __initconst = { "PNP0b00", "PNP0b01", "PNP0b02", }; struct pnp_dev *dev; struct pnp_id *id; -- 2.1.2