Re: [PATCH 4/4] mm/memory_hotplug: Drop unnecessary checks from register_mem_sect_under_node

2018-06-20 Thread Pavel Tatashin
On Fri, Jun 1, 2018 at 8:54 AM wrote: > > From: Oscar Salvador > > Callers of register_mem_sect_under_node() are always passing a valid > memory_block (not NULL), so we can safely drop the check for NULL. > > In the same way, register_mem_sect_under_node() is only called in case > the node is onl

[PATCH 4/4] mm/memory_hotplug: Drop unnecessary checks from register_mem_sect_under_node

2018-06-01 Thread osalvador
From: Oscar Salvador Callers of register_mem_sect_under_node() are always passing a valid memory_block (not NULL), so we can safely drop the check for NULL. In the same way, register_mem_sect_under_node() is only called in case the node is online, so we can safely remove that check as well. Sig