mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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]> Signed-off-by: Chris Metcalf <[email protected]>
This commit is contained in:
parent
b2dfa048ba
commit
60f917b8de
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue