drm/etnaviv: Remove useless error message
Subsystems (2)
PATCH 1/1 drm/etnaviv: Remove useless error message
Fix the following coccicheck report:
drivers/gpu/drm/etnaviv/etnaviv_gpu.c:1775:2-9:
line 1775 is redundant because platform_get_irq() already prints an error
Remove dev_err() messages after platform_get_irq() failures.
Signed-off-by Tian Tao <[email protected]>
Signed-off-by Zihao Tang <[email protected]>
Signed-off-by Jay Fang <[email protected]>
--- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/etnaviv/etnaviv_gpu.c +1 -3
@@ -1771,10 +1771,8 @@ static int etnaviv_gpu_platform_probe(struct platform_device *pdev)/* Get Interrupt: */ gpu->irq =platform_get_irq (pdev,0 ); -if (gpu->irq <0 ) { -dev_err (dev,"failed to get irq: %d\n" , gpu->irq); +if (gpu->irq <0 )return gpu->irq; - } err =devm_request_irq (&pdev->dev, gpu->irq, irq_handler,0 ,dev_name (gpu->dev), gpu);
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Am Do., 25. März 2021 um 13:33 Uhr schrieb Tian Tao <[email protected]>:
Quoted 11 lines
Fix the following coccicheck report:
drivers/gpu/drm/etnaviv/etnaviv_gpu.c:1775:2-9:
line 1775 is redundant becauseplatform_get_irq()already prints an errorRemove
dev_err()messages afterplatform_get_irq()failures.Signed-off-by Tian Tao <[email protected]>Signed-off-by Zihao Tang <[email protected]>Signed-off-by Jay Fang <[email protected]>
Reviewed-by Christian Gmeiner <[email protected]>
Signature · 9 lines
greets -- Christian Gmeiner, MSc https://christian-gmeiner.info/privacypolicy _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel