diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-25 18:27:44 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-25 18:27:44 -0500 |
commit | bfee26dba0f373ebe4e6f0b293d078b02f9f7f69 (patch) | |
tree | c16763220b2ade3bdfd24b874eedea51a3f66384 /include/acpi | |
parent | b8bd759acd05281abf88cddef30c57313c109697 (diff) |
ACPI / scan: Make it clear that acpi_bus_trim() cannot fail
Since acpi_bus_trim() cannot fail, change its definition to a void
function, so that its callers don't check the return value in vain
and update the callers.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 2c722deb2490..da7fb61ba868 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -348,7 +348,7 @@ int acpi_bus_register_driver(struct acpi_driver *driver); | |||
348 | void acpi_bus_unregister_driver(struct acpi_driver *driver); | 348 | void acpi_bus_unregister_driver(struct acpi_driver *driver); |
349 | int acpi_bus_scan(acpi_handle handle); | 349 | int acpi_bus_scan(acpi_handle handle); |
350 | void acpi_bus_hot_remove_device(void *context); | 350 | void acpi_bus_hot_remove_device(void *context); |
351 | int acpi_bus_trim(struct acpi_device *start); | 351 | void acpi_bus_trim(struct acpi_device *start); |
352 | acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd); | 352 | acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd); |
353 | int acpi_match_device_ids(struct acpi_device *device, | 353 | int acpi_match_device_ids(struct acpi_device *device, |
354 | const struct acpi_device_id *ids); | 354 | const struct acpi_device_id *ids); |