bug: Assign values once in bug_get_file_line()
authorAndrew Scull <ascull@google.com>
Thu, 18 Mar 2021 14:33:09 +0000 (14:33 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 1 Apr 2021 08:54:37 +0000 (09:54 +0100)
commit5b8be5d875a996776708ba174fcd08c8bcd721a5
tree609725de80512fb7dff50b84767a87addbfd0444
parent26dbc7e299c7ebbb6a95e2c620b21b5280b37c57
bug: Assign values once in bug_get_file_line()

Set bug_get_file_line()'s output parameter values directly rather than
first nullifying them and then conditionally setting new values.

Signed-off-by: Andrew Scull <ascull@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: "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-4-ascull@google.com
lib/bug.c