[PATCH] tpm: tpm_bios fix sparse warnings

Fixing the sparse warnings on the acpi_os_map_memory calls pointed out by
Randy.

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>
This commit is contained in:
Kylene Jo Hall 2006-02-01 03:05:04 -08:00 коммит произвёл Linus Torvalds
Родитель 7bcee5b86a
Коммит 10296cb0b2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -376,7 +376,7 @@ static int read_log(struct tpm_bios_log *log)
{
struct acpi_tcpa *buff;
acpi_status status;
void *virt;
struct acpi_table_header *virt;
if (log->bios_event_log != NULL) {
printk(KERN_ERR
@ -413,7 +413,7 @@ static int read_log(struct tpm_bios_log *log)
log->bios_event_log_end = log->bios_event_log + buff->log_max_len;
acpi_os_map_memory(buff->log_start_addr, buff->log_max_len, &virt);
acpi_os_map_memory(buff->log_start_addr, buff->log_max_len, (void *) &virt);
memcpy(log->bios_event_log, virt, buff->log_max_len);