diff options
author | 2021-03-18 14:33:07 +0000 | |
---|---|---|
committer | 2021-04-01 09:54:37 +0100 | |
commit | 3ad1a6cb0abc63d036fc866bd7c2c5983516dec5 (patch) | |
tree | d874dccb304b839fbb4b663fac8737b4c47375db /tools/perf/scripts/python | |
parent | Linux 5.12-rc3 (diff) | |
download | linux-dev-3ad1a6cb0abc63d036fc866bd7c2c5983516dec5.tar.xz linux-dev-3ad1a6cb0abc63d036fc866bd7c2c5983516dec5.zip |
bug: Remove redundant condition check in report_bug
report_bug() will return early if it cannot find a bug corresponding to
the provided address. The subsequent test for the bug will always be
true so remove it.
Fixes: 1b4cfe3c0a30d ("lib/bug.c: exclude non-BUG/WARN exceptions from report_bug()")
Signed-off-by: Andrew Scull <ascull@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210318143311.839894-2-ascull@google.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions