tcgbios: Fix use of unitialized variable

Review-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
diff --git a/src/tcgbios.c b/src/tcgbios.c
index 1082470..bde1ef8 100644
--- a/src/tcgbios.c
+++ b/src/tcgbios.c
@@ -1186,7 +1186,6 @@
                           struct hleeo *hleeo)
 {
     u32 rc = 0;
-    struct hleo hleo;
     struct hleei_long *hleei_l = (struct hleei_long *)hleei_s;
     const void *logdataptr;
     u32 logdatalen;
@@ -1229,7 +1228,7 @@
 
     hleeo->opblength = sizeof(struct hleeo);
     hleeo->reserved  = 0;
-    hleeo->eventnumber = hleo.eventnumber;
+    hleeo->eventnumber = tpm_state.entry_count;
     memcpy(hleeo->digest, pcpes->digest, sizeof(hleeo->digest));
 
 err_exit: