mm/memory_hotplug.c: remove unneeded return for void function
return is unneeded in void function Link: http://lkml.kernel.org/r/20190723130814.21826-1-houweitaoo@gmail.com Signed-off-by: Weitao Hou <houweitaoo@gmail.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Oscar Salvador <osalvador@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7b358c6f12
commit
aa4996b3af
|
@ -132,7 +132,6 @@ static void release_memory_resource(struct resource *res)
|
||||||
return;
|
return;
|
||||||
release_resource(res);
|
release_resource(res);
|
||||||
kfree(res);
|
kfree(res);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
|
#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
|
||||||
|
@ -979,7 +978,6 @@ static void rollback_node_hotadd(int nid)
|
||||||
arch_refresh_nodedata(nid, NULL);
|
arch_refresh_nodedata(nid, NULL);
|
||||||
free_percpu(pgdat->per_cpu_nodestats);
|
free_percpu(pgdat->per_cpu_nodestats);
|
||||||
arch_free_nodedata(pgdat);
|
arch_free_nodedata(pgdat);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue