summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-01 13:56:23 +0200
committerChris Metcalf <cmetcalf@tilera.com>2014-06-02 17:06:14 -0400
commit60f917b8de8d4a88c06a3f4727d0658082756de6 (patch)
tree2b1c994a4c236a6aeb19bcf874ded4d7d78b2345
parentb2dfa048bae3b4afe1944237c1ee9525df00bb6f (diff)
downloadop-kernel-dev-60f917b8de8d4a88c06a3f4727d0658082756de6.zip
op-kernel-dev-60f917b8de8d4a88c06a3f4727d0658082756de6.tar.gz
drivers/tty/hvc/hvc_tile.c: use PTR_ERR_OR_ZERO
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>
-rw-r--r--drivers/tty/hvc/hvc_tile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_tile.c b/drivers/tty/hvc/hvc_tile.c
index af8cdaa..af4e3d1 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);
OpenPOWER on IntegriCloud