Skip to content

Commit

Permalink
ARM: smp_twd: fix build warning
Browse files Browse the repository at this point in the history
0336517 "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>
  • Loading branch information
Arnd Bergmann committed Nov 6, 2012
1 parent a7e816b commit 5bd09fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/kernel/smp_twd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5bd09fb

Please sign in to comment.