Skip to contentSkip to conversation

atmel-isc: remove the warning

PATCH RESEND New Songjun Wu 1 participant 1 message Aug 24, 2016

Subsystems (2)
lore
Share & tools
lore

Songjun Wu

author
#0 lore raw

PATCH RESEND 1/1 atmel-isc: remove the warning

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

---

 drivers/media/platform/atmel/atmel-isc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/atmel/atmel-isc.c +1 -1
index f0c2512..db6773d 100644
@@ -1358,7 +1358,7 @@ static int atmel_isc_probe(struct platform_device *pdev)
 	}
 
 	irq = platform_get_irq(pdev, 0);
-	if (IS_ERR_VALUE(irq)) {
+	if (irq < 0) {
 		ret = irq;
 		dev_err(dev, "failed to get irq: %d\n", ret);
 		return ret;
Signature · 1 line
2.7.4