From 61a32235530e49d1b2d6006432bda2226f9a7d2a Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Tue, 15 Dec 2020 20:16:43 +0900 Subject: [PATCH] Remove duplicated function call in default_trans check_processes is already called via default_check. ex) default_check -> makeup_trans_condition -> check_processes Change-Id: Ie867584ce8c3571fbd2c424ea1a715201864d8ad Signed-off-by: lokilee73 --- plugins/iot/display/core.c | 6 +----- plugins/mobile/display/core.c | 6 +----- plugins/tv/display/core.c | 6 +----- plugins/wearable/display/core.c | 6 +----- 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/plugins/iot/display/core.c b/plugins/iot/display/core.c index 2c36504..b748d4a 100644 --- a/plugins/iot/display/core.c +++ b/plugins/iot/display/core.c @@ -1329,11 +1329,7 @@ static int default_trans(int evt) /* There is a condition. */ _I("%s locked. Trans to %s failed.", states[get_pm_cur_state()].name, states[next_state].name); - if (!check_processes(get_pm_cur_state())) { - /* This is valid condition - * The application that sent the condition is running now. */ - return -1; - } + return -1; } /* state transition */ diff --git a/plugins/mobile/display/core.c b/plugins/mobile/display/core.c index 037e1e0..98caba4 100644 --- a/plugins/mobile/display/core.c +++ b/plugins/mobile/display/core.c @@ -1340,11 +1340,7 @@ static int default_trans(int evt) /* There is a condition. */ _I("%s locked. Trans to %s failed.", states[get_pm_cur_state()].name, states[next_state].name); - if (!check_processes(get_pm_cur_state())) { - /* This is valid condition - * The application that sent the condition is running now. */ - return -1; - } + return -1; } /* state transition */ diff --git a/plugins/tv/display/core.c b/plugins/tv/display/core.c index 292ee87..9a3b157 100644 --- a/plugins/tv/display/core.c +++ b/plugins/tv/display/core.c @@ -1330,11 +1330,7 @@ static int default_trans(int evt) /* There is a condition. */ _I("%s locked. Trans to %s failed.", states[get_pm_cur_state()].name, states[next_state].name); - if (!check_processes(get_pm_cur_state())) { - /* This is valid condition - * The application that sent the condition is running now. */ - return -1; - } + return -1; } /* state transition */ diff --git a/plugins/wearable/display/core.c b/plugins/wearable/display/core.c index fa74617..c7c924a 100644 --- a/plugins/wearable/display/core.c +++ b/plugins/wearable/display/core.c @@ -1596,11 +1596,7 @@ static int default_trans(int evt) /* There is a condition. */ _I("%s locked. Trans to %s failed.", states[get_pm_cur_state()].name, states[next_state].name); - if (!check_processes(get_pm_cur_state())) { - /* This is valid condition - * The application that sent the condition is running now. */ - return -1; - } + return -1; } ret = is_lcdon_blocked(); -- 2.7.4