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

Commit 04c32a51 authored by Paul Gortmaker's avatar Paul Gortmaker Committed by Benjamin Herrenschmidt
Browse files

powerpc: Drop return value from set_breakpoint as it is unused



None of the callers check the return value, so it might as
well not have one at all.

Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent dade934a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+4 −4
Original line number Diff line number Diff line
@@ -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