]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptenroll: drop unmet condition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 May 2023 20:30:01 +0000 (05:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 May 2023 05:21:10 +0000 (14:21 +0900)
src/cryptenroll/cryptenroll-password.c

index 72f2165d49cefc9f8f8e6bebd635d3c5f5fac6be..450f9859716633b2be6d0f7ed46b55c35563e9f9 100644 (file)
@@ -77,8 +77,6 @@ int load_volume_key_password(
                                 if (r >= 0)
                                         break;
                         }
-                        if (r >= 0)
-                                break;
 
                         log_error_errno(r, "Password not correct, please try again.");
                         ask_password_flags &= ~ASK_PASSWORD_ACCEPT_CACHED;