Skip to content

Commit

Permalink
platform/x86: surface3-wmi: fix uninitialized symbol
Browse files Browse the repository at this point in the history
The patch 3dda3b3: "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>
  • Loading branch information
Benjamin Tissoires authored and Andy Shevchenko committed Jan 20, 2017
1 parent 44e6861 commit e95ac45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/surface3-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e95ac45

Please sign in to comment.