x86/mm/pat: Simplify the free_memtype() control flow
authorIngo Molnar <mingo@kernel.org>
Tue, 19 Nov 2019 09:18:56 +0000 (10:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 10 Dec 2019 09:12:55 +0000 (10:12 +0100)
commit47553d42c55f7b85e72ce6f3a18030102f8f93a3
tree75a39067ea3e3856b02df4b486c9d07059286348
parentef35b0fcee23d7636daa4bed62bceeaba4eed918
x86/mm/pat: Simplify the free_memtype() control flow

Simplify/streamline the quirky handling of the pat_pagerange_is_ram() logic,
and get rid of the 'err' local variable.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/pat.c