summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/rtc.c
diff options
context:
space:
mode:
authorColin King <colin.king@canonical.com>2015-01-14 15:07:55 +0100
committerThomas Gleixner <tglx@linutronix.de>2015-01-23 10:35:51 +0100
commitd505ad1d66c9cd31db5ab0d2c7bcb2a47e5bb29e (patch)
tree8ba528eb524dc9830e3d8ccc31b03d9714d5a652 /arch/x86/kernel/rtc.c
parentMerge tag 'x86_queue' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp ... (diff)
downloadlinux-d505ad1d66c9cd31db5ab0d2c7bcb2a47e5bb29e.tar.xz
linux-d505ad1d66c9cd31db5ab0d2c7bcb2a47e5bb29e.zip
x86/rtc: Remove duplicate const specifier
Building with clang: CC arch/x86/kernel/rtc.o arch/x86/kernel/rtc.c:173:29: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const char * const const ids[] __initconst = Remove the duplicate const, it is not needed and causes a warning. Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: http://lkml.kernel.org/r/1421244475-313-1-git-send-email-colin.king@canonical.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/rtc.c')
-rw-r--r--arch/x86/kernel/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c
index ca9622a25e95..fe3dbfe0c4a5 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 * const ids[] __initconst =
{ "PNP0b00", "PNP0b01", "PNP0b02", };
struct pnp_dev *dev;
struct pnp_id *id;