diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-17 22:01:38 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-10-17 13:40:53 -0700 |
commit | cba0fdbcff8b54c206c8e18898a55456959ed51a (patch) | |
tree | ce1810289fcf42c60ed7f2d0270fe3beb24958bd | |
parent | 76ef0db72f8b74bb92e24775d9d7f5ab26352bec (diff) | |
download | linux-next-cba0fdbcff8b54c206c8e18898a55456959ed51a.tar.gz |
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>
-rw-r--r-- | arch/x86/kernel/msr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c index c9603ac80de5..6e4f77fb6514 100644 --- a/arch/x86/kernel/msr.c +++ b/arch/x86/kernel/msr.c @@ -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) |