aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_perflib.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@linux01.gwdg.de>2006-09-30 18:28:50 -0400
committerLen Brown <len.brown@intel.com>2006-10-14 01:51:07 -0400
commit50dd096973f1d95aa03c6a6d9e148d706b62b68e (patch)
tree1f047b9c574672c133559922af5d4aee2816b9ae /drivers/acpi/processor_perflib.c
parentb4bd8c66435a8cdf8c90334fb3b517a23ff2ab95 (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_perflib.c')
-rw-r--r--drivers/acpi/processor_perflib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c
index 7ba5e49ab302..39fdbcc37d43 100644
--- a/drivers/acpi/processor_perflib.c
+++ b/drivers/acpi/processor_perflib.c
@@ -238,7 +238,7 @@ static int acpi_processor_get_performance_states(struct acpi_processor *pr)
238 return -ENODEV; 238 return -ENODEV;
239 } 239 }
240 240
241 pss = (union acpi_object *)buffer.pointer; 241 pss = buffer.pointer;
242 if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) { 242 if (!pss || (pss->type != ACPI_TYPE_PACKAGE)) {
243 printk(KERN_ERR PREFIX "Invalid _PSS data\n"); 243 printk(KERN_ERR PREFIX "Invalid _PSS data\n");
244 result = -EFAULT; 244 result = -EFAULT;
@@ -412,7 +412,7 @@ static struct file_operations acpi_processor_perf_fops = {
412 412
413static int acpi_processor_perf_seq_show(struct seq_file *seq, void *offset) 413static int acpi_processor_perf_seq_show(struct seq_file *seq, void *offset)
414{ 414{
415 struct acpi_processor *pr = (struct acpi_processor *)seq->private; 415 struct acpi_processor *pr = seq->private;
416 int i; 416 int i;
417 417
418 418
@@ -453,8 +453,8 @@ acpi_processor_write_performance(struct file *file,
453 size_t count, loff_t * data) 453 size_t count, loff_t * data)
454{ 454{
455 int result = 0; 455 int result = 0;
456 struct seq_file *m = (struct seq_file *)file->private_data; 456 struct seq_file *m = file->private_data;
457 struct acpi_processor *pr = (struct acpi_processor *)m->private; 457 struct acpi_processor *pr = m->private;
458 struct acpi_processor_performance *perf; 458 struct acpi_processor_performance *perf;
459 char state_string[12] = { '\0' }; 459 char state_string[12] = { '\0' };
460 unsigned int new_state = 0; 460 unsigned int new_state = 0;
@@ -553,7 +553,7 @@ static int acpi_processor_get_psd(struct acpi_processor *pr)
553 return -ENODEV; 553 return -ENODEV;
554 } 554 }
555 555
556 psd = (union acpi_object *) buffer.pointer; 556 psd = buffer.pointer;
557 if (!psd || (psd->type != ACPI_TYPE_PACKAGE)) { 557 if (!psd || (psd->type != ACPI_TYPE_PACKAGE)) {
558 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _PSD data\n")); 558 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid _PSD data\n"));
559 result = -EFAULT; 559 result = -EFAULT;