From 60f917b8de8d4a88c06a3f4727d0658082756de6 Mon Sep 17 00:00:00 2001 From: Fabian Frederick Date: Sun, 1 Jun 2014 13:56:23 +0200 Subject: drivers/tty/hvc/hvc_tile.c: use PTR_ERR_OR_ZERO replace IS_ERR/PTR_ERR Cc: Chris Metcalf Cc: Greg Kroah-Hartman Signed-off-by: Fabian Frederick Signed-off-by: Chris Metcalf --- drivers/tty/hvc/hvc_tile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/tty') diff --git a/drivers/tty/hvc/hvc_tile.c b/drivers/tty/hvc/hvc_tile.c index af8cdaa1dcb9..af4e3d1bac2a 100644 --- a/drivers/tty/hvc/hvc_tile.c +++ b/drivers/tty/hvc/hvc_tile.c @@ -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); -- cgit v1.2.3