]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-login: remove dead code 30400/head
authorLuca Boccassi <bluca@debian.org>
Sat, 9 Dec 2023 13:10:18 +0000 (13:10 +0000)
committerLuca Boccassi <bluca@debian.org>
Sat, 9 Dec 2023 13:17:02 +0000 (13:17 +0000)
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

src/login/test-login-tables.c

index e9ff3085ecba43439ada633c5729f973e5e95e2e..1278af7504c70dd4ba9d8bab343f2d2b1e2e919a 100644 (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));