1
0
Fork 0

x86, msr: Use PTR_ERR_OR_ZERO

Replace IS_ERR/PTR_ERR

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Link: http://lkml.kernel.org/r/1413576099-27059-1-git-send-email-fabf@skynet.be
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
hifive-unleashed-5.1
Fabian Frederick 2014-10-17 22:01:38 +02:00 committed by H. Peter Anvin
parent 76ef0db72f
commit cba0fdbcff
1 changed files with 1 additions and 1 deletions

View File

@ -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)