Commit e8d95ce9 authored by Fabian Frederick's avatar Fabian Frederick Committed by H. Peter Anvin

x86/sysfb: Use PTR_ERR_OR_ZERO

Replace IS_ERR/PTR_ERR
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Link: http://lkml.kernel.org/r/1413576053-26761-1-git-send-email-fabf@skynet.beSigned-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent cbda45a2
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment