Commit a864b9d0 authored by Sasha Levin's avatar Sasha Levin Committed by Linus Torvalds
Browse files

mm: memory_hotplug: no need to check res twice in add_memory

Remove one redundant check of res.
Signed-off-by: default avatarSasha Levin <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 41badc15
......@@ -901,8 +901,7 @@ error:
/* rollback pgdat allocation and others */
if (new_pgdat)
rollback_node_hotadd(nid, pgdat);
if (res)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment