diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2021-03-25 15:33:56 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2021-05-03 17:13:46 +0300 |
commit | 0e63302dc1438e6f2846d1cd5f2fc36a28a824df (patch) | |
tree | d0038e65e7a3b51c7fce76517712ba4bc1753b10 /drivers/gpu/drm/etnaviv | |
parent | bdf622e0fade2cec72c948c708763378b656c01d (diff) | |
download | linux-0e63302dc1438e6f2846d1cd5f2fc36a28a824df.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/etnaviv')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index ec16991ba8b6..573f5c83b318 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -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); |