aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChristophe Leroy <[email protected]>2020-02-19 08:05:57 +0000
committerMichael Ellerman <[email protected]>2020-03-25 12:09:08 +1100
commiteb4f8e259acc37b91b62ca57e0d3c8960c357843 (patch)
tree2e6cf3edf430b142874ee13f1373d1fc874c4e49 /tools/perf/scripts/python
parent6eeb9b3b9ce588f14a697737a30d0702b5a20293 (diff)
powerpc/kprobes: Remove redundant code
At the time being we have something like if (something) { p = get(); if (p) { if (something_wrong) goto out; ... return; } else if (a != b) { if (some_error) goto out; ... } goto out; } p = get(); if (!p) { if (a != b) { if (some_error) goto out; ... } goto out; } This is similar to p = get(); if (!p) { if (a != b) { if (some_error) goto out; ... } goto out; } if (something) { if (something_wrong) goto out; ... return; } Signed-off-by: Christophe Leroy <[email protected]> [mpe: Reflow the comment that was moved] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/07a17425743600460ce35fa9432d42487a825583.1582099499.git.christophe.leroy@c-s.fr
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions