powerpc: Drop return value from set_breakpoint as it is unused
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 29 Apr 2014 19:25:16 +0000 (15:25 -0400)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 20 May 2014 00:54:05 +0000 (10:54 +1000)
None of the callers check the return value, so it might as
well not have one at all.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/debug.h
arch/powerpc/kernel/process.c

index d2516308ed1eabe30927bf631bbc62f6b9c9d843..1d7f966d3b18979dc666a17dcb83112c23acfb82 100644 (file)
@@ -46,7 +46,7 @@ static inline int debugger_break_match(struct pt_regs *regs) { return 0; }
 static inline int debugger_fault_handler(struct pt_regs *regs) { return 0; }
 #endif
 
-int set_breakpoint(struct arch_hw_breakpoint *brk);
+void set_breakpoint(struct arch_hw_breakpoint *brk);
 #ifdef CONFIG_PPC_ADV_DEBUG_REGS
 extern void do_send_trap(struct pt_regs *regs, unsigned long address,
                         unsigned long error_code, int signal_code, int brkpt);
index 2ae1b99166c63895784539f1c87a7488278ddf05..f895a50622870c37fbafeea53d600abdae98a942 100644 (file)
@@ -496,14 +496,14 @@ static inline int set_dawr(struct arch_hw_breakpoint *brk)
        return 0;
 }
 
-int set_breakpoint(struct arch_hw_breakpoint *brk)
+void set_breakpoint(struct arch_hw_breakpoint *brk)
 {
        __get_cpu_var(current_brk) = *brk;
 
        if (cpu_has_feature(CPU_FTR_DAWR))
-               return set_dawr(brk);
-
-       return set_dabr(brk);
+               set_dawr(brk);
+       else
+               set_dabr(brk);
 }
 
 #ifdef CONFIG_PPC64