[PATCH] arch/x86/kernel/rtc.c: Overzealous usage of 'const' keyword
From: Edward O'Callaghan
Date: Sun Oct 12 2014 - 07:59:52 EST
Please merge.
--
______________________________________________________________________
Edward O'Callaghan, Director and Principal consultant.
https://www.alterapraxis.com | eocallaghan@xxxxxxxxxxxxxxxx
Altera Praxis Pty Ltd, // Discretions in cybersecurity
ACN 165 424 064. // reconnaissance and adversary mitigation.
______________________________________________________________________
From f8847c4eb8f7550c43e2dbc9efaff91434a54fe7 Mon Sep 17 00:00:00 2001
From: Edward O'Callaghan <eocallaghan@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxx
No need to qualify with 'const' no less than three times over.
Signed-off-by: Edward O'Callaghan <eocallaghan@xxxxxxxxxxxxxxxx>
---
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