提交 8c64a945 编写于 作者: B Bernard Zhao 提交者: Rob Clark

gpu/drm/msm: remove redundant pr_err() when devm_kzalloc failed

Line 1826 pr_err is redundant because memory alloc already
prints an error when failed.
Signed-off-by: NBernard Zhao <bernard@vivo.com>
Link: https://lore.kernel.org/r/20210202120552.14744-1-bernard@vivo.comSigned-off-by: NRob Clark <robdclark@chromium.org>
上级 73743e72
......@@ -1826,8 +1826,6 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi)
msm_host = devm_kzalloc(&pdev->dev, sizeof(*msm_host), GFP_KERNEL);
if (!msm_host) {
pr_err("%s: FAILED: cannot alloc dsi host\n",
__func__);
ret = -ENOMEM;
goto fail;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册