mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-06 19:02:48 +00:00
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 <tiantao6@hisilicon.com> Signed-off-by: Zihao Tang <tangzihao1@hisilicon.com> Signed-off-by: Jay Fang <f.fangjian@huawei.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
parent
bdf622e0fa
commit
0e63302dc1
@ -1783,10 +1783,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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user