From: Deepak R Varma Date: Wed, 1 Mar 2023 19:48:06 +0000 (+0530) Subject: drm/tegra: sor: Remove redundant error logging X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3105e42c75e0f80a6933e29291a94f669b869dbd;p=linux.git drm/tegra: sor: Remove redundant error logging A call to platform_get_irq() already prints an error on failure within its own implementation. So printing another error based on its return value in the caller is redundant and should be removed. The clean up also makes if condition block braces unnecessary. Remove that as well. Issue identified using platform_get_irq.cocci coccicheck script. Signed-off-by: Deepak R Varma Reviewed-by: Ashutosh Dixit Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index e617d55f6f3ce..8eafbdd3620c3 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -3799,10 +3799,8 @@ static int tegra_sor_probe(struct platform_device *pdev) } err = platform_get_irq(pdev, 0); - if (err < 0) { - dev_err(&pdev->dev, "failed to get IRQ: %d\n", err); + if (err < 0) goto remove; - } sor->irq = err;