diff mbox series

gpu/drm/msm: remove redundant when devm_kzalloc failed

Message ID 20210202120552.14744-1-bernard@vivo.com (mailing list archive)
State Accepted
Commit 8c64a945a6148e84b63f5015b0eeedbc513b7eb0
Headers show
Series gpu/drm/msm: remove redundant when devm_kzalloc failed | expand

Commit Message

Bernard Zhao Feb. 2, 2021, 12:05 p.m. UTC
Line 1826 pr_err is redundant because memory alloc already
prints an error when failed.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 2 --
 1 file changed, 2 deletions(-)

Comments

patchwork-bot+linux-arm-msm@kernel.org May 26, 2021, 7:03 p.m. UTC | #1
Hello:

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

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.
> 
> Signed-off-by: Bernard Zhao <bernard@vivo.com>
> ---
>  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
diff mbox series

Patch

diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c
index ab281cba0f08..246d3f06f3ef 100644
--- a/drivers/gpu/drm/msm/dsi/dsi_host.c
+++ b/drivers/gpu/drm/msm/dsi/dsi_host.c
@@ -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;
 	}