diff options
author | Jan Engelhardt <jengelh@linux01.gwdg.de> | 2006-09-30 18:28:50 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-10-14 01:51:07 -0400 |
commit | 50dd096973f1d95aa03c6a6d9e148d706b62b68e (patch) | |
tree | 1f047b9c574672c133559922af5d4aee2816b9ae /drivers/acpi/processor_core.c | |
parent | b4bd8c66435a8cdf8c90334fb3b517a23ff2ab95 (diff) |
ACPI: Remove unnecessary from/to-void* and to-void casts in drivers/acpi
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/processor_core.c')
-rw-r--r-- | drivers/acpi/processor_core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index b13d64415b7a..44c624bd40cb 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -277,7 +277,7 @@ static struct proc_dir_entry *acpi_processor_dir = NULL; | |||
277 | 277 | ||
278 | static int acpi_processor_info_seq_show(struct seq_file *seq, void *offset) | 278 | static int acpi_processor_info_seq_show(struct seq_file *seq, void *offset) |
279 | { | 279 | { |
280 | struct acpi_processor *pr = (struct acpi_processor *)seq->private; | 280 | struct acpi_processor *pr = seq->private; |
281 | 281 | ||
282 | 282 | ||
283 | if (!pr) | 283 | if (!pr) |
@@ -542,12 +542,12 @@ static int acpi_processor_start(struct acpi_device *device) | |||
542 | * Don't trust it blindly | 542 | * Don't trust it blindly |
543 | */ | 543 | */ |
544 | if (processor_device_array[pr->id] != NULL && | 544 | if (processor_device_array[pr->id] != NULL && |
545 | processor_device_array[pr->id] != (void *)device) { | 545 | processor_device_array[pr->id] != device) { |
546 | printk(KERN_WARNING "BIOS reported wrong ACPI id" | 546 | printk(KERN_WARNING "BIOS reported wrong ACPI id" |
547 | "for the processor\n"); | 547 | "for the processor\n"); |
548 | return -ENODEV; | 548 | return -ENODEV; |
549 | } | 549 | } |
550 | processor_device_array[pr->id] = (void *)device; | 550 | processor_device_array[pr->id] = device; |
551 | 551 | ||
552 | processors[pr->id] = pr; | 552 | processors[pr->id] = pr; |
553 | 553 | ||
@@ -578,7 +578,7 @@ static int acpi_processor_start(struct acpi_device *device) | |||
578 | 578 | ||
579 | static void acpi_processor_notify(acpi_handle handle, u32 event, void *data) | 579 | static void acpi_processor_notify(acpi_handle handle, u32 event, void *data) |
580 | { | 580 | { |
581 | struct acpi_processor *pr = (struct acpi_processor *)data; | 581 | struct acpi_processor *pr = data; |
582 | struct acpi_device *device = NULL; | 582 | struct acpi_device *device = NULL; |
583 | 583 | ||
584 | 584 | ||
@@ -637,7 +637,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type) | |||
637 | if (!device || !acpi_driver_data(device)) | 637 | if (!device || !acpi_driver_data(device)) |
638 | return -EINVAL; | 638 | return -EINVAL; |
639 | 639 | ||
640 | pr = (struct acpi_processor *)acpi_driver_data(device); | 640 | pr = acpi_driver_data(device); |
641 | 641 | ||
642 | if (pr->id >= NR_CPUS) { | 642 | if (pr->id >= NR_CPUS) { |
643 | kfree(pr); | 643 | kfree(pr); |