projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76ef0db
)
x86, msr: Use PTR_ERR_OR_ZERO
author
Fabian Frederick
<fabf@skynet.be>
Fri, 17 Oct 2014 20:01:38 +0000
(22:01 +0200)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Fri, 17 Oct 2014 20:40:53 +0000
(13:40 -0700)
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>
arch/x86/kernel/msr.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/msr.c
b/arch/x86/kernel/msr.c
index c9603ac80de5ecbc32ac80027d33a815ee6f9e94..6e4f77fb6514a57b8637d369b63bfefb33239ef2 100644
(file)
--- 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)