diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2017-01-18 09:13:46 +0100 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-01-21 00:43:42 +0100 |
commit | e95ac4574b23a5fd8f5c5f2c19ef69ac15b7252c (patch) | |
tree | d34f6a73a5fcf58c8902772450d9a10367a64eca /drivers/platform/x86/surface3-wmi.c | |
parent | platform/x86: surface3-wmi: Shut up unused-function warning (diff) | |
download | linux-e95ac4574b23a5fd8f5c5f2c19ef69ac15b7252c.tar.xz linux-e95ac4574b23a5fd8f5c5f2c19ef69ac15b7252c.zip |
platform/x86: surface3-wmi: fix uninitialized symbol
The patch 3dda3b3798f9: "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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/surface3-wmi.c')
-rw-r--r-- | drivers/platform/x86/surface3-wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/surface3-wmi.c b/drivers/platform/x86/surface3-wmi.c index 6ac1d1349d7e..25b176996cb7 100644 --- a/drivers/platform/x86/surface3-wmi.c +++ b/drivers/platform/x86/surface3-wmi.c @@ -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) { - struct acpi_device *adev, *ts_adev; + struct acpi_device *adev, *ts_adev = NULL; acpi_handle handle; acpi_status status; |