Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d505ad1d authored by Colin King's avatar Colin King Committed by Thomas Gleixner
Browse files

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: default avatarColin 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: default avatarThomas Gleixner <tglx@linutronix.de>
parent 2372673c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -170,7 +170,7 @@ static struct platform_device rtc_device = {
static __init int add_rtc_cmos(void)
static __init int add_rtc_cmos(void)
{
{
#ifdef CONFIG_PNP
#ifdef CONFIG_PNP
	static const char * const  const ids[] __initconst =
	static const char * const ids[] __initconst =
	    { "PNP0b00", "PNP0b01", "PNP0b02", };
	    { "PNP0b00", "PNP0b01", "PNP0b02", };
	struct pnp_dev *dev;
	struct pnp_dev *dev;
	struct pnp_id *id;
	struct pnp_id *id;