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

x86, cpuid: 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/1413576077-26969-1-git-send-email-fabf@skynet.beSigned-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 196cf358
......@@ -143,7 +143,7 @@ static int cpuid_device_create(int cpu)
dev = device_create(cpuid_class, NULL, MKDEV(CPUID_MAJOR, cpu), NULL,
"cpu%d", cpu);
return IS_ERR(dev) ? PTR_ERR(dev) : 0;
return PTR_ERR_OR_ZERO(dev);
}
static void cpuid_device_destroy(int cpu)
......
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