Skip to content

Commit

Permalink
drivers/parport/parport_ip32.c: use PTR_ERR_OR_ZERO
Browse files Browse the repository at this point in the history
replace IS_ERR/PTR_ERR

Signed-off-by: Fabian Frederick <[email protected]>
Cc: Wolfram Sang <[email protected]>
Cc: Linus Walleij <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Aug 8, 2014
1 parent 69361ee commit 340f365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/parport/parport_ip32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 340f365

Please sign in to comment.