]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
bug: Remove redundant condition check in report_bug
authorAndrew Scull <ascull@google.com>
Thu, 18 Mar 2021 14:33:07 +0000 (14:33 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 26 May 2021 13:39:19 +0000 (15:39 +0200)
commitdbeee5f338f7f81385859f77870b6bdb8cdda220
tree3d6e8e6c4f37036cce61aa328bb958d4c0fb13d5
parent7889f6333be5f0bf8b1d99a2d61c425653f9aa69
bug: Remove redundant condition check in report_bug

BugLink: https://bugs.launchpad.net/bugs/1929615
[ Upstream commit 3ad1a6cb0abc63d036fc866bd7c2c5983516dec5 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
lib/bug.c