Fix LUKS2_config_get_requirements prototype.

It never returns any error. Make it void.
This commit is contained in:
Ondrej Kozina
2025-04-25 15:49:19 +02:00
committed by Milan Broz
parent 221d6ac345
commit fa84cb8a55
5 changed files with 15 additions and 31 deletions

View File

@@ -7089,8 +7089,10 @@ int crypt_persistent_flags_get(struct crypt_device *cd, crypt_flags_type type, u
if (type == CRYPT_FLAGS_ACTIVATION)
return LUKS2_config_get_flags(cd, &cd->u.luks2.hdr, flags);
if (type == CRYPT_FLAGS_REQUIREMENTS)
return LUKS2_config_get_requirements(cd, &cd->u.luks2.hdr, flags);
if (type == CRYPT_FLAGS_REQUIREMENTS) {
LUKS2_config_get_requirements(cd, &cd->u.luks2.hdr, flags);
return 0;
}
return -EINVAL;
}