提交 846c4a7b 编写于 作者: S Songjun Wu 提交者: Mauro Carvalho Chehab

[media] atmel-isc: remove the warning

Replace the 'IS_ERR_VALUE(irq)' with 'ret < 0' in
function 'atmel_isc_probe'.
Reported-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NSongjun Wu <songjun.wu@microchip.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 ee242096
...@@ -1358,7 +1358,7 @@ static int atmel_isc_probe(struct platform_device *pdev) ...@@ -1358,7 +1358,7 @@ static int atmel_isc_probe(struct platform_device *pdev)
} }
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (IS_ERR_VALUE(irq)) { if (irq < 0) {
ret = irq; ret = irq;
dev_err(dev, "failed to get irq: %d\n", ret); dev_err(dev, "failed to get irq: %d\n", ret);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册