tree-wide: use returned value from log_*_errno()

This commit is contained in:
Yu Watanabe
2018-08-07 15:48:37 +09:00
parent 4ae25393f3
commit fc95c359f6
6 changed files with 15 additions and 30 deletions
+2 -4
View File
@@ -1101,10 +1101,8 @@ int dissected_image_decrypt_interactively(
return r;
if (r == -EKEYREJECTED)
log_error_errno(r, "Incorrect passphrase, try again!");
else if (r != -ENOKEY) {
log_error_errno(r, "Failed to decrypt image: %m");
return r;
}
else if (r != -ENOKEY)
return log_error_errno(r, "Failed to decrypt image: %m");
if (--n < 0) {
log_error("Too many retries.");