]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: sunxi-ng: nkm: remove redundant initialization of tmp_parent
authorColin Ian King <colin.i.king@gmail.com>
Mon, 23 Oct 2023 13:35:02 +0000 (14:35 +0100)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Sat, 18 Nov 2023 22:20:34 +0000 (23:20 +0100)
commit89e00444cb894a42c33ba88738eaae788b05b924
treeb25d245e6ea8bd770206582c86ed865a80c61ef6
parentb85ea95d086471afb4ad062012a4d73cd328fa86
clk: sunxi-ng: nkm: remove redundant initialization of tmp_parent

Variable tmp_parent is being ininitialized with a value that is never
read, the initialization is redundant and can be removed. Move the
initialization and move the variable to the inner loop scope.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20231023133502.666559-1-colin.i.king@gmail.com
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
drivers/clk/sunxi-ng/ccu_nkm.c