projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
196cf35
)
x86, cpuid: Use PTR_ERR_OR_ZERO
author
Fabian Frederick
<fabf@skynet.be>
Fri, 17 Oct 2014 20:01:17 +0000
(22:01 +0200)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Fri, 17 Oct 2014 20:40:51 +0000
(13:40 -0700)
Replace IS_ERR/PTR_ERR
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Link:
http://lkml.kernel.org/r/1413576077-26969-1-git-send-email-fabf@skynet.be
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpuid.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/cpuid.c
b/arch/x86/kernel/cpuid.c
index 3225ae6c51806af1590ce780a68ff67e6ca8ae77..83741a71558fb0a311fb1bb079e125f24435344a 100644
(file)
--- a/
arch/x86/kernel/cpuid.c
+++ b/
arch/x86/kernel/cpuid.c
@@
-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)