aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi/resource.c
diff options
context:
space:
mode:
authorThomas Gleixner2015-02-02 10:42:47 +0800
committerRafael J. Wysocki2015-02-03 22:27:14 +0100
commitc793504de3de484076e1eb96d5187af55f47945c (patch)
tree2504c891ce5651a7f54c9b1a15550de20b88aaec /drivers/acpi/resource.c
parentb2cd5dd71a59a85d910f52070992decd406f9da7 (diff)
ACPI: Remove redundant check in function acpi_dev_resource_address_space()
The ACPI type is checked in acpi_resource_to_address64() anyway. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/resource.c')
-rw-r--r--drivers/acpi/resource.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c
index d0a4d90c6bcc..1c616a56e007 100644
--- a/drivers/acpi/resource.c
+++ b/drivers/acpi/resource.c
@@ -189,15 +189,6 @@ bool acpi_dev_resource_address_space(struct acpi_resource *ares,
u64 len;
u8 io_decode;
- switch (ares->type) {
- case ACPI_RESOURCE_TYPE_ADDRESS16:
- case ACPI_RESOURCE_TYPE_ADDRESS32:
- case ACPI_RESOURCE_TYPE_ADDRESS64:
- break;
- default:
- return false;
- }
-
status = acpi_resource_to_address64(ares, &addr);
if (ACPI_FAILURE(status))
return false;