mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 04:30:52 +07:00
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:
parent
cbda45a2d4
commit
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user