Skip to content

Commit

Permalink
x86/sysfb: Use PTR_ERR_OR_ZERO
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabian Frederick authored and H. Peter Anvin committed Oct 17, 2014
1 parent cbda45a commit e8d95ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/sysfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit e8d95ce

Please sign in to comment.