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

x86/simplefb: 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/1413576066-26925-1-git-send-email-fabf@skynet.beSigned-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent e8d95ce9
......@@ -88,8 +88,5 @@ __init int create_simplefb(const struct screen_info *si,
pd = platform_device_register_resndata(NULL, "simple-framebuffer", 0,
&res, 1, mode, sizeof(*mode));
if (IS_ERR(pd))
return PTR_ERR(pd);
return 0;
return PTR_ERR_OR_ZERO(pd);
}
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