Skip to content

Commit

Permalink
drm/msm/dsi: Drop unnecessary -ENOMEM message
Browse files Browse the repository at this point in the history
Kernel core already prints detailed report about memory allocation
failures, so drivers should not have their own error messages.

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/637308/
Link: https://lore.kernel.org/r/20250214-drm-msm-cleanups-v2-4-1bec50f37dc1@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Krzysztof Kozlowski authored and Dmitry Baryshkov committed Feb 26, 2025
1 parent cce1562 commit b39e701
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/msm/dsi/dsi_host.c
Original file line number Diff line number Diff line change
@@ -1910,10 +1910,8 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi)
return dev_err_probe(&pdev->dev, ret, "%s: unable to initialize dsi clks\n", __func__);

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

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

0 comments on commit b39e701

Please sign in to comment.