tests: power_mgmt: Remove dead logic
testing_device_lock is no longer used and the logic using it is never used / needed. Just remove it. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
f531afbd2c
commit
fdcd944c82
1 changed files with 0 additions and 13 deletions
|
@ -26,7 +26,6 @@ static bool leave_idle;
|
|||
static bool idle_entered;
|
||||
static bool testing_device_runtime;
|
||||
static bool testing_device_order;
|
||||
static bool testing_device_lock;
|
||||
static bool testing_force_state;
|
||||
|
||||
enum pm_state forced_state;
|
||||
|
@ -170,18 +169,6 @@ void pm_state_set(enum pm_state state, uint8_t substate_id)
|
|||
return;
|
||||
}
|
||||
|
||||
if (testing_device_lock) {
|
||||
pm_device_state_get(device_a, &device_power_state);
|
||||
|
||||
/*
|
||||
* If the device has its state locked the device has
|
||||
* to be ACTIVE
|
||||
*/
|
||||
zassert_true(device_power_state == PM_DEVICE_STATE_ACTIVE,
|
||||
NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
if (testing_force_state) {
|
||||
/* if forced to given power state was called */
|
||||
set_pm = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue