Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 846c4a7b authored by Songjun Wu's avatar Songjun Wu Committed by Mauro Carvalho Chehab
Browse files

[media] atmel-isc: remove the warning



Replace the 'IS_ERR_VALUE(irq)' with 'ret < 0' in
function 'atmel_isc_probe'.

Reported-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarSongjun Wu <songjun.wu@microchip.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent ee242096
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;