x86/sysfb: Use PTR_ERR_OR_ZERO
Replace IS_ERR/PTR_ERR Signed-off-by: Fabian Frederick <fabf@skynet.be> Link: http://lkml.kernel.org/r/1413576053-26761-1-git-send-email-fabf@skynet.be Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
Родитель
cbda45a2d4
Коммит
e8d95ce970
|
@ -67,7 +67,7 @@ static __init int sysfb_init(void)
|
|||
|
||||
pd = platform_device_register_resndata(NULL, name, 0,
|
||||
NULL, 0, si, sizeof(*si));
|
||||
return IS_ERR(pd) ? PTR_ERR(pd) : 0;
|
||||
return PTR_ERR_OR_ZERO(pd);
|
||||
}
|
||||
|
||||
/* must execute after PCI subsystem for EFI quirks */
|
||||
|
|
Загрузка…
Ссылка в новой задаче