Skip to contentSkip to conversation

drivers/parport/parport_ip32.c: use PTR_ERR_OR_ZERO

PATCH RESEND New Fabian Frederick 1 participant 1 message Jun 15, 2014 Parallel port

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 drivers/parport/parport_ip32.c: use PTR_ERR_OR_ZERO

replace IS_ERR/PTR_ERR

Cc Wolfram Sang <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Walleij <[email protected]>

---
This is untested.

 drivers/parport/parport_ip32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/parport/parport_ip32.c +1 -1
index c864f82..30e981b 100644
@@ -2204,7 +2204,7 @@ static int __init parport_ip32_init(void)
 {
 	pr_info(PPIP32 "SGI IP32 built-in parallel port driver v0.6\n");
 	this_port = parport_ip32_probe_port();
-	return IS_ERR(this_port) ? PTR_ERR(this_port) : 0;
+	return PTR_ERR_OR_ZERO(this_port);
 }
 
 /**
Signature · 1 line
1.8.4.5