Skip to content
Snippets Groups Projects
Commit cba0fdbc authored by Fabian Frederick's avatar Fabian Frederick Committed by H. Peter Anvin
Browse files

x86, msr: 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/1413576099-27059-1-git-send-email-fabf@skynet.be


Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 76ef0db7
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ static int msr_device_create(int cpu)
dev = device_create(msr_class, NULL, MKDEV(MSR_MAJOR, cpu), NULL,
"msr%d", cpu);
return IS_ERR(dev) ? PTR_ERR(dev) : 0;
return PTR_ERR_OR_ZERO(dev);
}
static void msr_device_destroy(int cpu)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment