projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
031229b
)
arm/xen: Delete an error message for a failed memory allocation in __set_phys_to_mach...
author
Markus Elfring
<elfring@users.sourceforge.net>
Sun, 4 Jun 2017 19:12:36 +0000
(21:12 +0200)
committer
Stefano Stabellini
<sstabellini@kernel.org>
Mon, 5 Jun 2017 17:38:07 +0000
(10:38 -0700)
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Link:
http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
arch/arm/xen/p2m.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/xen/p2m.c
b/arch/arm/xen/p2m.c
index 11e78432b663a77dc705d42d86cb4cbb30ce2ed9..f5f74ac637b9f41996572e07fe56326a0447fde0 100644
(file)
--- a/
arch/arm/xen/p2m.c
+++ b/
arch/arm/xen/p2m.c
@@
-145,10
+145,9
@@
bool __set_phys_to_machine_multi(unsigned long pfn,
}
p2m_entry = kzalloc(sizeof(*p2m_entry), GFP_NOWAIT);
- if (!p2m_entry) {
- pr_warn("cannot allocate xen_p2m_entry\n");
+ if (!p2m_entry)
return false;
- }
+
p2m_entry->pfn = pfn;
p2m_entry->nr_pages = nr_pages;
p2m_entry->mfn = mfn;