Commit 0647bf15 authored by Xu Wang's avatar Xu Wang Committed by Laurent Pinchart

drm: bridge: dw-hdmi: Remove redundant null check before clk_disable_unprepare

Because clk_disable_unprepare() already checked NULL clock parameter,
so the additional check is unnecessary, just remove them.
Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent a9a472aa
...@@ -3440,8 +3440,7 @@ struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev, ...@@ -3440,8 +3440,7 @@ struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev,
err_iahb: err_iahb:
clk_disable_unprepare(hdmi->iahb_clk); clk_disable_unprepare(hdmi->iahb_clk);
if (hdmi->cec_clk) clk_disable_unprepare(hdmi->cec_clk);
clk_disable_unprepare(hdmi->cec_clk);
err_isfr: err_isfr:
clk_disable_unprepare(hdmi->isfr_clk); clk_disable_unprepare(hdmi->isfr_clk);
err_res: err_res:
...@@ -3465,8 +3464,7 @@ void dw_hdmi_remove(struct dw_hdmi *hdmi) ...@@ -3465,8 +3464,7 @@ void dw_hdmi_remove(struct dw_hdmi *hdmi)
clk_disable_unprepare(hdmi->iahb_clk); clk_disable_unprepare(hdmi->iahb_clk);
clk_disable_unprepare(hdmi->isfr_clk); clk_disable_unprepare(hdmi->isfr_clk);
if (hdmi->cec_clk) clk_disable_unprepare(hdmi->cec_clk);
clk_disable_unprepare(hdmi->cec_clk);
if (hdmi->i2c) if (hdmi->i2c)
i2c_del_adapter(&hdmi->i2c->adap); i2c_del_adapter(&hdmi->i2c->adap);
......
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