]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: smp_twd: fix build warning
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Nov 2012 22:02:27 +0000 (23:02 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 6 Nov 2012 22:07:02 +0000 (23:07 +0100)
0336517b38c "ARM: smp_twd: don't warn on no DT node" introduced
a silly build warning by returning an error from a void function.
This keeps the intention of that patch but fixes the warning by
removing the error code

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/kernel/smp_twd.c

index 6ec73f91a1d6f858f719102d1c608afb8bb47d63..999aa48657dd1102b452357e25420e9501a280ec 100644 (file)
@@ -367,7 +367,7 @@ void __init twd_local_timer_of_register(void)
 
        np = of_find_matching_node(NULL, twd_of_match);
        if (!np)
-               return -ENODEV;
+               return;
 
        twd_ppi = irq_of_parse_and_map(np, 0);
        if (!twd_ppi) {