Commit 42eb4731 authored by Chen Ni's avatar Chen Ni Committed by Mark Brown

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: default avatarChen Ni <nichen@iscas.ac.cn>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20240709085131.1436128-1-nichen@iscas.ac.cnSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4f8cd05a
...@@ -1108,9 +1108,7 @@ static int mt8192_mt6359_legacy_probe(struct mtk_soc_card_data *soc_card_data) ...@@ -1108,9 +1108,7 @@ static int mt8192_mt6359_legacy_probe(struct mtk_soc_card_data *soc_card_data)
err_headset_codec: err_headset_codec:
of_node_put(speaker_codec); of_node_put(speaker_codec);
err_speaker_codec: err_speaker_codec:
if (hdmi_codec) of_node_put(hdmi_codec);
of_node_put(hdmi_codec);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment