Skip to content

Commit b39e701

Browse files
krzklumag
authored andcommitted
drm/msm/dsi: Drop unnecessary -ENOMEM message
Kernel core already prints detailed report about memory allocation failures, so drivers should not have their own error messages. Reviewed-by: Abhinav Kumar <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/637308/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent cce1562 commit b39e701

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/drm/msm/dsi/dsi_host.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,10 +1910,8 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi)
19101910
return dev_err_probe(&pdev->dev, ret, "%s: unable to initialize dsi clks\n", __func__);
19111911

19121912
msm_host->rx_buf = devm_kzalloc(&pdev->dev, SZ_4K, GFP_KERNEL);
1913-
if (!msm_host->rx_buf) {
1914-
pr_err("%s: alloc rx temp buf failed\n", __func__);
1913+
if (!msm_host->rx_buf)
19151914
return -ENOMEM;
1916-
}
19171915

19181916
ret = devm_pm_opp_set_clkname(&pdev->dev, "byte");
19191917
if (ret)

0 commit comments

Comments
 (0)