]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/unwind/orc: Remove redundant initialization of 'mid' pointer in __orc_find()
authorColin Ian King <colin.i.king@gmail.com>
Wed, 20 Sep 2023 11:41:41 +0000 (12:41 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Sep 2023 06:41:23 +0000 (08:41 +0200)
commitfef44ebaf61b57a71ab818058926a3f9a0ac81e6
treecbd6cb2ae829bfc9fdc2760c089ef750344d9ed1
parentce9ecca0238b140b88f43859b211c9fdfd8e5b70
x86/unwind/orc: Remove redundant initialization of 'mid' pointer in __orc_find()

The 'mid' pointer is being initialized with a value that is never read,
it is being re-assigned and used inside a for-loop. Remove the
redundant initialization.

Cleans up clang scan build warning:

  arch/x86/kernel/unwind_orc.c:88:7: warning: Value stored to 'mid' during its initialization is never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20230920114141.118919-1-colin.i.king@gmail.com
arch/x86/kernel/unwind_orc.c