summaryrefslogtreecommitdiff
path: root/futility/updater.c
diff options
context:
space:
mode:
Diffstat (limited to 'futility/updater.c')
-rw-r--r--futility/updater.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/futility/updater.c b/futility/updater.c
index 8dad7d41..859dedee 100644
--- a/futility/updater.c
+++ b/futility/updater.c
@@ -955,12 +955,7 @@ const struct vb2_gbb_header *find_gbb(const struct firmware_image *image)
find_firmware_section(&section, image, FMAP_RO_GBB);
gbb_header = (struct vb2_gbb_header *)section.data;
- /*
- * futil_valid_gbb_header needs v1 header (GoogleBinaryBlockHeader)
- * but that should be compatible with vb2_gbb_header
- */
- if (!futil_valid_gbb_header((GoogleBinaryBlockHeader *)gbb_header,
- section.size, NULL)) {
+ if (!futil_valid_gbb_header(gbb_header, section.size, NULL)) {
ERROR("Cannot find GBB in image: %s.\n", image->file_name);
return NULL;
}