From: Weitao Hou <houweitaoo@xxxxxxxxx> Subject: 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@xxxxxxxxx Signed-off-by: Weitao Hou <houweitaoo@xxxxxxxxx> Reviewed-by: David Hildenbrand <david@xxxxxxxxxx> Reviewed-by: Oscar Salvador <osalvador@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory_hotplug.c | 2 -- 1 file changed, 2 deletions(-) --- a/mm/memory_hotplug.c~mm-hotplug-remove-unneeded-return-for-void-function +++ a/mm/memory_hotplug.c @@ -132,7 +132,6 @@ static void release_memory_resource(stru return; release_resource(res); kfree(res); - return; } #ifdef CONFIG_MEMORY_HOTPLUG_SPARSE @@ -979,7 +978,6 @@ static void rollback_node_hotadd(int nid arch_refresh_nodedata(nid, NULL); free_percpu(pgdat->per_cpu_nodestats); arch_free_nodedata(pgdat); - return; } _