hvmloader: Don't set hpet->header.length twice
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Oct 2011 17:10:46 +0000 (18:10 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Oct 2011 17:10:46 +0000 (18:10 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
tools/firmware/hvmloader/acpi/build.c

index e6c2556633d9810b5e795da124313a835e43f2ae..61ed7ff3c061dbb3d05b8d7b2b837d897b1d2396 100644 (file)
@@ -186,8 +186,7 @@ static struct acpi_20_hpet *construct_hpet(void)
     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;
 }