mm/hotplug: remove unneeded return for void function
Subsystems (2)
PATCH 1/1 mm/hotplug: remove unneeded return for void function
return is unneeded in void function
Signed-off-by Weitao Hou <[email protected]>
--- mm/memory_hotplug.c | 2 -- 1 file changed, 2 deletions(-)
mm/memory_hotplug.c +0 -2
@@ -132,7 +132,6 @@ static void release_memory_resource(struct resource *res)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 ; }
Signature · 1 line
2.18.0
Quoted 21 lines · Weitao Hou
return is unneeded in void function
Signed-off-by Weitao Hou <[email protected]>--- mm/memory_hotplug.c | 2 -- 1 file changed, 2 deletions(-)mm/memory_hotplug.c +0
-1@@ -132,7 +132,6 @@ static void release_memory_resource(struct resource *res)return ;release_resource (res);kfree (res); -return ; }#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
mm/memory_hotplug.c static void rollback_node_hotadd(int nid) · line 983
Quoted 7 lines
mm/memory_hotplug.c +0
-1@@ -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 ; }
Reviewed-by David Hildenbrand <[email protected]>
Signature · 3 lines
Thanks, David / dhildenb
Quoted 3 lines · Weitao Hou
return is unneeded in void function
Signed-off-by Weitao Hou <[email protected]>
Reviewed-by Oscar Salvador <[email protected]>
Quoted 27 lines
--- mm/memory_hotplug.c | 2 -- 1 file changed, 2 deletions(-)mm/memory_hotplug.c +0
-2@@ -132,7 +132,6 @@ static void release_memory_resource(struct resource *res)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 ; }Signature · 1 line
2.18.0
Signature · 2 lines
Oscar Salvador SUSE L3