Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/simplefb: Use PTR_ERR_OR_ZERO

Replace IS_ERR/PTR_ERR

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Link: http://lkml.kernel.org/r/1413576066-26925-1-git-send-email-fabf@skynet.be
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>

authored by

Fabian Frederick and committed by
H. Peter Anvin
76ef0db7 e8d95ce9

+1 -4
+1 -4
arch/x86/kernel/sysfb_simplefb.c
··· 88 88 89 89 pd = platform_device_register_resndata(NULL, "simple-framebuffer", 0, 90 90 &res, 1, mode, sizeof(*mode)); 91 - if (IS_ERR(pd)) 92 - return PTR_ERR(pd); 93 - 94 - return 0; 91 + return PTR_ERR_OR_ZERO(pd); 95 92 }