From 7e10ca7b4405eaa7705c706cb8e2e1855b46ab9f Mon Sep 17 00:00:00 2001 From: Chris Goldsworthy Date: Tue, 25 Feb 2020 09:36:04 -0800 Subject: [PATCH] mm/oom-kill: Remove obsolete IS_ENABLED check CONFIG_HAVE_LOW_MEMORY_KILLER is no longer present on 5.4, so remove a check to see if it's enabled or not. Change-Id: Ifcd88a0e29b7da6dede7f98fcb4c99ffc7bf3c02 Signed-off-by: Chris Goldsworthy --- mm/oom_kill.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 987a84f72c7b..d0cece9bdd15 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -1158,8 +1158,7 @@ void pagefault_out_of_memory(void) .order = 0, }; - if (IS_ENABLED(CONFIG_HAVE_LOW_MEMORY_KILLER) || - IS_ENABLED(CONFIG_HAVE_USERSPACE_LOW_MEMORY_KILLER)) + if (IS_ENABLED(CONFIG_HAVE_USERSPACE_LOW_MEMORY_KILLER)) return; if (mem_cgroup_oom_synchronize(true))