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:
41badc1
)
mm: memory_hotplug: no need to check res twice in add_memory
author
Sasha Levin
<sasha.levin@oracle.com>
Sat, 23 Feb 2013 00:32:48 +0000
(16:32 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sun, 24 Feb 2013 01:50:11 +0000
(17:50 -0800)
Remove one redundant check of res.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/memory_hotplug.c
b/mm/memory_hotplug.c
index d04ed87bfacbab59953859f9e860acae3f6335ab..302291429953f53f740c89075f5bd54509f8cc1f 100644
(file)
--- a/
mm/memory_hotplug.c
+++ b/
mm/memory_hotplug.c
@@
-901,8
+901,7
@@
error:
/* rollback pgdat allocation and others */
if (new_pgdat)
rollback_node_hotadd(nid, pgdat);
- if (res)
- release_memory_resource(res);
+ release_memory_resource(res);
out:
unlock_memory_hotplug();