Commit e95ac457 authored by Benjamin Tissoires's avatar Benjamin Tissoires Committed by Andy Shevchenko

platform/x86: surface3-wmi: fix uninitialized symbol

The patch 3dda3b37: "platform/x86: Add custom surface3 platform
device for controlling LID" from Nov 25, 2016, leads to the following
static checker warning:

        drivers/platform/x86/surface3-wmi.c:168 s3_wmi_check_platform_device()
        error: uninitialized symbol 'ts_adev'.
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 44e68616
...@@ -139,7 +139,7 @@ static acpi_status s3_wmi_attach_spi_device(acpi_handle handle, ...@@ -139,7 +139,7 @@ static acpi_status s3_wmi_attach_spi_device(acpi_handle handle,
static int s3_wmi_check_platform_device(struct device *dev, void *data) static int s3_wmi_check_platform_device(struct device *dev, void *data)
{ {
struct acpi_device *adev, *ts_adev; struct acpi_device *adev, *ts_adev = NULL;
acpi_handle handle; acpi_handle handle;
acpi_status status; acpi_status status;
......
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