aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/power.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/power.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/power.c')
-rw-r--r--drivers/acpi/power.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index fec225d1b6b7..e9dab54bd541 100644
--- a/drivers/acpi/power.c
+++ b/drivers/acpi/power.c
@@ -108,7 +108,7 @@ acpi_power_get_context(acpi_handle handle,
108 return result; 108 return result;
109 } 109 }
110 110
111 *resource = (struct acpi_power_resource *)acpi_driver_data(device); 111 *resource = acpi_driver_data(device);
112 if (!resource) 112 if (!resource)
113 return -ENODEV; 113 return -ENODEV;
114 114
@@ -445,7 +445,7 @@ static int acpi_power_seq_show(struct seq_file *seq, void *offset)
445 struct acpi_power_resource *resource = NULL; 445 struct acpi_power_resource *resource = NULL;
446 446
447 447
448 resource = (struct acpi_power_resource *)seq->private; 448 resource = seq->private;
449 449
450 if (!resource) 450 if (!resource)
451 goto end; 451 goto end;
@@ -593,7 +593,7 @@ static int acpi_power_remove(struct acpi_device *device, int type)
593 if (!device || !acpi_driver_data(device)) 593 if (!device || !acpi_driver_data(device))
594 return -EINVAL; 594 return -EINVAL;
595 595
596 resource = (struct acpi_power_resource *)acpi_driver_data(device); 596 resource = acpi_driver_data(device);
597 597
598 acpi_power_remove_fs(device); 598 acpi_power_remove_fs(device);
599 599