mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arch/x86/kernel/rtc.c: Overzealous usage of 'const' keyword
@ 2014-10-12 11:53 Edward O'Callaghan
  0 siblings, 0 replies; only message in thread
From: Edward O'Callaghan @ 2014-10-12 11:53 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

Please merge.


-- 
______________________________________________________________________

Edward O'Callaghan, Director and Principal consultant.

https://www.alterapraxis.com | eocallaghan@alterapraxis.com

Altera Praxis Pty Ltd,  // Discretions in cybersecurity
ACN 165 424 064.       // reconnaissance and adversary mitigation.
______________________________________________________________________

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-arch-x86-kernel-rtc.c-Overzealous-usage-of-const-key.patch --]
[-- Type: text/x-patch, Size: 1020 bytes --]

From f8847c4eb8f7550c43e2dbc9efaff91434a54fe7 Mon Sep 17 00:00:00 2001
From: Edward O'Callaghan <eocallaghan@alterapraxis.com>
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 <eocallaghan@alterapraxis.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-12 11:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-12 11:53 [PATCH] arch/x86/kernel/rtc.c: Overzealous usage of 'const' keyword Edward O'Callaghan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®