drivers/tty/hvc/hvc_tile.c: use PTR_ERR_OR_ZERO
authorFabian Frederick <fabf@skynet.be>
Sun, 1 Jun 2014 11:56:23 +0000 (13:56 +0200)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 2 Jun 2014 21:06:14 +0000 (17:06 -0400)
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>
drivers/tty/hvc/hvc_tile.c

index af8cdaa1dcb90b50d9ee1143e933d51d7fc6696d..af4e3d1bac2a30fc85aba9a15ceb6a801b9c0720 100644 (file)
@@ -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);