drivers/tty/hvc/hvc_tile.c: use PTR_ERR_OR_ZERO
PATCH 1/1 drivers/tty/hvc/hvc_tile.c: use PTR_ERR_OR_ZERO
replace IS_ERR/PTR_ERR
Cc Chris Metcalf <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Signed-off-by Fabian Frederick <[email protected]>
---
This is untested.
drivers/tty/hvc/hvc_tile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/hvc/hvc_tile.c +1 -1
@@ -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);
Signature · 1 line
1.8.4.5
Quoted 10 lines · Fabian Frederick
replace IS_ERR/PTR_ERR
Cc Chris Metcalf <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Fabian Frederick <[email protected]>---
This is untested.drivers/tty/hvc/hvc_tile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, taken into the linux-tile tree.
Signature · 2 lines
Chris Metcalf, Tilera Corp. http://www.tilera.com