mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 06:52:07 +00:00
media: sun8i: Remove redundant platform_get_irq error message
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 <yuehaibing@huawei.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
dc42cf74d9
commit
6821660c43
1 changed files with 1 additions and 4 deletions
|
@ -814,11 +814,8 @@ static int deinterlace_probe(struct platform_device *pdev)
|
||||||
dev->dev = &pdev->dev;
|
dev->dev = &pdev->dev;
|
||||||
|
|
||||||
irq = platform_get_irq(pdev, 0);
|
irq = platform_get_irq(pdev, 0);
|
||||||
if (irq <= 0) {
|
if (irq <= 0)
|
||||||
dev_err(dev->dev, "Failed to get IRQ\n");
|
|
||||||
|
|
||||||
return irq;
|
return irq;
|
||||||
}
|
|
||||||
|
|
||||||
ret = devm_request_irq(dev->dev, irq, deinterlace_irq,
|
ret = devm_request_irq(dev->dev, irq, deinterlace_irq,
|
||||||
0, dev_name(dev->dev), dev);
|
0, dev_name(dev->dev), dev);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue