Skip to content

Commit

Permalink
[PATCH] tpm: tpm_bios remove unused variable
Browse files Browse the repository at this point in the history
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: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Kylene Jo Hall authored and Linus Torvalds committed Feb 1, 2006
1 parent 10296cb commit 295b117
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/char/tpm/tpm_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static int get_event_name(char *dest, struct tcpa_event *event,
const char *name = "";
char data[40] = "";
int i, n_len = 0, d_len = 0;
u32 event_id, event_data_size;
u32 event_id;

switch(event->event_type) {
case PREBOOT:
Expand Down Expand Up @@ -221,7 +221,6 @@ static int get_event_name(char *dest, struct tcpa_event *event,
break;
case EVENT_TAG:
event_id = be32_to_cpu(*((u32 *)event_entry));
event_data_size = be32_to_cpu(((u32 *)event_entry)[1]);

/* ToDo Row data -> Base64 */

Expand Down

0 comments on commit 295b117

Please sign in to comment.