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:
Fabian Frederick 2014-10-17 22:00:53 +02:00 committed by H. Peter Anvin
parent cbda45a2d4
commit e8d95ce970

View File

@ -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 */