Remove duplicated function call in default_trans 26/249626/3
authorlokilee73 <changjoo.lee@samsung.com>
Tue, 15 Dec 2020 11:16:43 +0000 (20:16 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Wed, 16 Dec 2020 03:43:23 +0000 (12:43 +0900)
check_processes is already called via default_check.
ex) default_check -> makeup_trans_condition -> check_processes

Change-Id: Ie867584ce8c3571fbd2c424ea1a715201864d8ad
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
plugins/iot/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c

index 2c36504..b748d4a 100644 (file)
@@ -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 */
index 037e1e0..98caba4 100644 (file)
@@ -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 */
index 292ee87..9a3b157 100644 (file)
@@ -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 */
index fa74617..c7c924a 100644 (file)
@@ -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();