Skip to content

Commit 033ccdb

Browse files
YueHaibingthierryreding
authored andcommitted
gpu: host1x: Remove dev_err() on platform_get_irq() failure
platform_get_irq() will call dev_err() itself on failure, so there is no need for the driver to also do this. This is detected by coccinelle. Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 271502e commit 033ccdb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/host1x/dev.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,8 @@ static int host1x_probe(struct platform_device *pdev)
339339
}
340340

341341
syncpt_irq = platform_get_irq(pdev, 0);
342-
if (syncpt_irq < 0) {
343-
dev_err(&pdev->dev, "failed to get IRQ: %d\n", syncpt_irq);
342+
if (syncpt_irq < 0)
344343
return syncpt_irq;
345-
}
346344

347345
mutex_init(&host->devices_lock);
348346
INIT_LIST_HEAD(&host->devices);

0 commit comments

Comments
 (0)