]> git.karo-electronics.de Git - linux-beck.git/commit
platform/x86: surface3-wmi: fix uninitialized symbol
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 18 Jan 2017 08:13:46 +0000 (09:13 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Jan 2017 23:43:42 +0000 (01:43 +0200)
commite95ac4574b23a5fd8f5c5f2c19ef69ac15b7252c
treed34f6a73a5fcf58c8902772450d9a10367a64eca
parent44e6861646748a21b55725adc0780342f4440066
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>
drivers/platform/x86/surface3-wmi.c