boot: Drop unnecessary braces

This commit is contained in:
Daan De Meyer
2021-02-02 21:15:24 +00:00
parent d47b7c5720
commit fffd5e8ee3
+1 -2
View File
@@ -1820,11 +1820,10 @@ static BOOLEAN config_entry_add_loader_auto(
/* look for systemd-boot magic string */
err = file_read(root_dir, loader, 0, 100*1024, &content, &len);
if (!EFI_ERROR(err)) {
if (!EFI_ERROR(err))
for (CHAR8 *start = content; start <= content + len - sizeof(magic) - 1; start++)
if (start[0] == magic[0] && CompareMem(start, magic, sizeof(magic) - 1) == 0)
return FALSE;
}
}
/* check existence */