[PATCH] powerpc/perf: Fix book3s kernel to userspace backtraces

Anton Blanchard anton at samba.org
Tue May 26 22:09:57 AEST 2015


Hi Laurentiu,

> > +	if ((TRAP(regs) == 0xf00) && regs->result)
> > +		return true;
> > +
> > +	return false;
> 
> Why not just
> 
> return (TRAP(regs) == 0xf00) && regs->result;

Could do, it just read a little easier to my tired eyes.

Anton


More information about the Linuxppc-dev mailing list