Skip to content

Commit

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

Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
  • Loading branch information
Fabian Frederick authored and Chris Metcalf committed Jun 2, 2014
1 parent b2dfa04 commit 60f917b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/hvc/hvc_tile.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static int __init hvc_tile_init(void)
#ifndef __tilegx__
struct hvc_struct *hp;
hp = hvc_alloc(0, 0, &hvc_tile_get_put_ops, 128);
return IS_ERR(hp) ? PTR_ERR(hp) : 0;
return PTR_ERR_OR_ZERO(hp);
#else
platform_device_register(&hvc_tile_pdev);
return platform_driver_register(&hvc_tile_driver);
Expand Down

0 comments on commit 60f917b

Please sign in to comment.