mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
more return NULL instead of 0 cleanups
This commit is contained in:
@@ -1621,16 +1621,16 @@ const char *LUKS2_get_integrity(struct luks2_hdr *hdr, int segment)
|
||||
return NULL;
|
||||
|
||||
if (!json_object_object_get_ex(hdr->jobj, "segments", &jobj1))
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
if (!json_object_object_get_ex(jobj1, buf, &jobj2))
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
if (!json_object_object_get_ex(jobj2, "integrity", &jobj3))
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
if (!json_object_object_get_ex(jobj3, "type", &jobj4))
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
return json_object_get_string(jobj4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user