Commit 295b117e authored by Kylene Jo Hall's avatar Kylene Jo Hall Committed by Linus Torvalds

[PATCH] tpm: tpm_bios remove unused variable

Remove event_data_size since it was pointed out in tpm_bios-indexing-
fix.patch that is was ugly and it wasn't actually being used.
Signed-off-by: default avatarKylene Hall <kjhall@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 10296cb0
...@@ -191,7 +191,7 @@ static int get_event_name(char *dest, struct tcpa_event *event, ...@@ -191,7 +191,7 @@ static int get_event_name(char *dest, struct tcpa_event *event,
const char *name = ""; const char *name = "";
char data[40] = ""; char data[40] = "";
int i, n_len = 0, d_len = 0; int i, n_len = 0, d_len = 0;
u32 event_id, event_data_size; u32 event_id;
switch(event->event_type) { switch(event->event_type) {
case PREBOOT: case PREBOOT:
...@@ -221,7 +221,6 @@ static int get_event_name(char *dest, struct tcpa_event *event, ...@@ -221,7 +221,6 @@ static int get_event_name(char *dest, struct tcpa_event *event,
break; break;
case EVENT_TAG: case EVENT_TAG:
event_id = be32_to_cpu(*((u32 *)event_entry)); event_id = be32_to_cpu(*((u32 *)event_entry));
event_data_size = be32_to_cpu(((u32 *)event_entry)[1]);
/* ToDo Row data -> Base64 */ /* ToDo Row data -> Base64 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment