Minor cleanup

This commit is contained in:
topjohnwu
2023-06-22 02:23:27 -07:00
parent 9c7cf340a1
commit 732a161b67
5 changed files with 16 additions and 13 deletions
+2 -2
View File
@@ -152,7 +152,7 @@ static bool dtb_patch(const char *file) {
int len;
char *value = (char *) fdt_getprop(fdt, node, "fsmgr_flags", &len);
byte_data data(value, len);
patched |= (rust::patch_verity(data) != len);
patched |= (patch_verity(data) != len);
}
}
}
@@ -225,7 +225,7 @@ static bool fdt_patch(void *fdt) {
int len;
const void *value = fdt_getprop(fdt, node, "fsmgr_flags", &len);
heap_data copy = byte_view(value, len).clone();
auto patched_sz = rust::patch_verity(copy);
auto patched_sz = patch_verity(copy);
if (patched_sz != len) {
modified = true;
fdt_setprop(fdt, node, "fsmgr_flags", copy.buf(), patched_sz);