]> asedeno.scripts.mit.edu Git - linux.git/commit
ia64: contig/paging_init: reduce code duplication
authorMike Rapoport <rppt@linux.vnet.ibm.com>
Mon, 23 Jul 2018 05:56:55 +0000 (08:56 +0300)
committerTony Luck <tony.luck@intel.com>
Mon, 23 Jul 2018 17:29:55 +0000 (10:29 -0700)
commit1ecd64abb5e462cfbb675d71a6d33fa1463945ea
tree90661d29e8d30561f0fb297b4ef9a678252c7cc6
parentd72e90f33aa4709ebecc5005562f52335e106a60
ia64: contig/paging_init: reduce code duplication

The FLATMEM version of paging_init has calls to free_area_init_nodes() in
the end of every branch of 'if' and 'ifdef' statements.

Let's call this function outside the 'ifdef' and 'if' statements instead.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/mm/contig.c