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: Bernard Zhao <bernard@vivo.com>
Link: https://lore.kernel.org/r/20210202120552.14744-1-bernard@vivo.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
Bernard Zhao 2021-02-02 04:05:49 -08:00 committed by Rob Clark
parent 73743e72fe
commit 8c64a945a6
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}