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>
This commit is contained in:

committed by
Len Brown

parent
b4bd8c6643
commit
50dd096973
@@ -108,7 +108,7 @@ acpi_power_get_context(acpi_handle handle,
|
||||
return result;
|
||||
}
|
||||
|
||||
*resource = (struct acpi_power_resource *)acpi_driver_data(device);
|
||||
*resource = acpi_driver_data(device);
|
||||
if (!resource)
|
||||
return -ENODEV;
|
||||
|
||||
@@ -445,7 +445,7 @@ static int acpi_power_seq_show(struct seq_file *seq, void *offset)
|
||||
struct acpi_power_resource *resource = NULL;
|
||||
|
||||
|
||||
resource = (struct acpi_power_resource *)seq->private;
|
||||
resource = seq->private;
|
||||
|
||||
if (!resource)
|
||||
goto end;
|
||||
@@ -593,7 +593,7 @@ static int acpi_power_remove(struct acpi_device *device, int type)
|
||||
if (!device || !acpi_driver_data(device))
|
||||
return -EINVAL;
|
||||
|
||||
resource = (struct acpi_power_resource *)acpi_driver_data(device);
|
||||
resource = acpi_driver_data(device);
|
||||
|
||||
acpi_power_remove_fs(device);
|
||||
|
||||
|
Reference in New Issue
Block a user