Skip to contentSkip to conversation

hvmloader: Don't set hpet->header.length twice

PATCH New Andrew Cooper 1 participant 1 message Oct 14, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hvmloader: Don't set hpet->header.length twice

It is redundant.

tools/firmware/hvmloader/acpi/build.c +1 -2
diff -r 4b0907c6a08c -r a112f0afefc7 tools/firmware/hvmloader/acpi/build.c
@@ -186,8 +186,7 @@ static struct acpi_20_hpet *construct_hp
     hpet->addr.address        = ACPI_HPET_ADDRESS;
 
     hpet->header.length = sizeof(*hpet);
-    set_checksum(hpet, offsetof(struct acpi_header, checksum),
-                 hpet->header.length = sizeof(*hpet));
+    set_checksum(hpet, offsetof(struct acpi_header, checksum), sizeof(*hpet));
     return hpet;
 }