bug: Remove redundant condition check in report_bug
authorAndrew Scull <ascull@google.com>
Thu, 18 Mar 2021 14:33:07 +0000 (14:33 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 1 Apr 2021 08:54:37 +0000 (09:54 +0100)
commit3ad1a6cb0abc63d036fc866bd7c2c5983516dec5
treed874dccb304b839fbb4b663fac8737b4c47375db
parent1e28eed17697bcf343c6743f0028cc3b5dd88bf0
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
lib/bug.c