Commit bfd732f6 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] m68k sparse void return

M68k: Don't return anything in functions returning void (found by sparse)
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 20f36fc0
...@@ -545,7 +545,8 @@ void mac_free_irq(unsigned int irq, void *dev_id) ...@@ -545,7 +545,8 @@ void mac_free_irq(unsigned int irq, void *dev_id)
#endif #endif
if (irq < VIA1_SOURCE_BASE) { if (irq < VIA1_SOURCE_BASE) {
return cpu_free_irq(irq, dev_id); cpu_free_irq(irq, dev_id);
return;
} }
if (irq >= NUM_MAC_SOURCES) { if (irq >= NUM_MAC_SOURCES) {
......
...@@ -45,7 +45,7 @@ static inline struct vm_struct *get_io_area(unsigned long size) ...@@ -45,7 +45,7 @@ static inline struct vm_struct *get_io_area(unsigned long size)
static inline void free_io_area(void *addr) static inline void free_io_area(void *addr)
{ {
return vfree((void *)(PAGE_MASK & (unsigned long)addr)); vfree((void *)(PAGE_MASK & (unsigned long)addr));
} }
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment