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 <drv@mailo.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
Deepak R Varma 2023-03-02 01:18:06 +05:30 committed by Thierry Reding
parent 13fcbcb97d
commit 3105e42c75
1 changed files with 1 additions and 3 deletions

View File

@ -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;