ASoC: mediatek: mt8192: remove redundant null pointer check before of_node_put
authorChen Ni <nichen@iscas.ac.cn>
Tue, 9 Jul 2024 08:51:31 +0000 (16:51 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 29 Jul 2024 00:18:41 +0000 (01:18 +0100)
commit42eb47310f89eca3226e8e427bc9d571149dc866
tree4a0ddc7d29b96a34d3eee576a868fba6eb434817
parent4f8cd05a43058b165b83f12f656e60415d2ff5be
ASoC: mediatek: mt8192: remove redundant null pointer check before of_node_put

of_node_put() has taken the null pointer check into account. So it is safe
to remove the duplicated check before of_node_put().

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20240709085131.1436128-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c