Skip to content

Commit

Permalink
mm/memory_hotplug.c: remove unneeded return for void function
Browse files Browse the repository at this point in the history
return is unneeded in void function

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Weitao Hou <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Oscar Salvador <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
houweitaoo authored and torvalds committed Aug 3, 2019
1 parent 7b358c6 commit aa4996b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ static void release_memory_resource(struct resource *res)
return;
release_resource(res);
kfree(res);
return;
}

#ifdef CONFIG_MEMORY_HOTPLUG_SPARSE
Expand Down Expand Up @@ -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;
}


Expand Down

0 comments on commit aa4996b

Please sign in to comment.