1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-08 09:57:41 +03:00

test-login: remove dead code

HANDLE_SLEEP is == _HANDLE_ACTION_SLEEP_LAST and the loop is bounded
by < _HANDLE_ACTION_SLEEP_LAST, so no need to check for it

CID#1529414
This commit is contained in:
Luca Boccassi 2023-12-09 13:10:18 +00:00
parent 2343f6b11e
commit 3b3bce04f0

View File

@ -11,9 +11,6 @@ static void test_sleep_handle_action(void) {
const HandleActionData *data;
const char *sleep_operation_str, *handle_action_str;
if (action == HANDLE_SLEEP)
continue;
assert_se(data = handle_action_lookup(action));
assert_se(handle_action_str = handle_action_to_string(action));