mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue