Commit 66fb9d12 authored by Thomas Renninger's avatar Thomas Renninger Committed by Len Brown

ACPI: Cleanup: Remove unneeded, multiple local dummy variables

Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent c46e5658
...@@ -882,10 +882,7 @@ static void acpi_device_get_busid(struct acpi_device *device, ...@@ -882,10 +882,7 @@ static void acpi_device_get_busid(struct acpi_device *device,
static int static int
acpi_video_bus_match(struct acpi_device *device) acpi_video_bus_match(struct acpi_device *device)
{ {
acpi_handle h_dummy1; acpi_handle h_dummy;
acpi_handle h_dummy2;
acpi_handle h_dummy3;
if (!device) if (!device)
return -EINVAL; return -EINVAL;
...@@ -895,18 +892,18 @@ acpi_video_bus_match(struct acpi_device *device) ...@@ -895,18 +892,18 @@ acpi_video_bus_match(struct acpi_device *device)
*/ */
/* Does this device able to support video switching ? */ /* Does this device able to support video switching ? */
if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_DOD", &h_dummy1)) && if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_DOD", &h_dummy)) &&
ACPI_SUCCESS(acpi_get_handle(device->handle, "_DOS", &h_dummy2))) ACPI_SUCCESS(acpi_get_handle(device->handle, "_DOS", &h_dummy)))
return 0; return 0;
/* Does this device able to retrieve a video ROM ? */ /* Does this device able to retrieve a video ROM ? */
if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_ROM", &h_dummy1))) if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_ROM", &h_dummy)))
return 0; return 0;
/* Does this device able to configure which video head to be POSTed ? */ /* Does this device able to configure which video head to be POSTed ? */
if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_VPO", &h_dummy1)) && if (ACPI_SUCCESS(acpi_get_handle(device->handle, "_VPO", &h_dummy)) &&
ACPI_SUCCESS(acpi_get_handle(device->handle, "_GPD", &h_dummy2)) && ACPI_SUCCESS(acpi_get_handle(device->handle, "_GPD", &h_dummy)) &&
ACPI_SUCCESS(acpi_get_handle(device->handle, "_SPD", &h_dummy3))) ACPI_SUCCESS(acpi_get_handle(device->handle, "_SPD", &h_dummy)))
return 0; return 0;
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment