提交 a60bbb27 编写于 作者: M Markus Elfring 提交者: Rob Clark

drm/msm/dsi: Delete an unnecessary check before the function call "dsi_destroy"

The dsi_destroy() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NRob Clark <robdclark@gmail.com>
上级 b96b3a06
......@@ -110,9 +110,7 @@ static struct msm_dsi *dsi_init(struct platform_device *pdev)
return msm_dsi;
fail:
if (msm_dsi)
dsi_destroy(msm_dsi);
dsi_destroy(msm_dsi);
return ERR_PTR(ret);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册