mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Fix LUKS2_config_get_requirements prototype.
It never returns any error. Make it void.
This commit is contained in:
committed by
Milan Broz
parent
221d6ac345
commit
fa84cb8a55
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user