ACPI: Remove redundant check in function acpi_dev_resource_address_space()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 2 Feb 2015 02:42:47 +0000 (10:42 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 21:27:14 +0000 (22:27 +0100)
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>
drivers/acpi/resource.c

index d0a4d90c6bcc2c7f8841c022d677af56fa933a9a..1c616a56e007575df66620ad9256762533e750bb 100644 (file)
@@ -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;