Skip to contentSkip to conversation

gpu/drm/msm: remove redundant when devm_kzalloc failed

PATCH Applied Bernard Zhao 2 participants 2 messages Feb 2, 2021 – May 26, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpu/drm/msm: remove redundant when devm_kzalloc failed

Line 1826 pr_err is redundant because memory alloc already prints an error when failed.

---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/msm/dsi/dsi_host.c +0 -2
index ab281cba0f08..246d3f06f3ef 100644
@@ -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;
 	}
Signature · 1 line
2.29.0
#1 lore raw
This patch was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

Quoted 7 lines · On Tue, 2 Feb 2021 04:05:49 -0800 you wrote:

Line 1826 pr_err is redundant because memory alloc already prints an error when failed.

---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 2 --
 1 file changed, 2 deletions(-)

Here is the summary with links:
- gpu/drm/msm: remove redundant when devm_kzalloc failed

    https://git.kernel.org/qcom/c/8c64a945a614

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html