lkml.org 
[lkml]   [2014]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] arch/x86/kernel/rtc.c: Overzealous usage of 'const' keyword
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.
______________________________________________________________________
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
\
 
 \ /
  Last update: 2014-10-12 14:41    [W:0.038 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site