platform/x86: asus-wireless: Fix uninitialized symbol usage
authorJoão Paulo Rechi Vita <jprvita@gmail.com>
Fri, 29 Jun 2018 22:12:46 +0000 (15:12 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Jul 2018 13:48:22 +0000 (16:48 +0300)
commiteca4c4e47eb0658ad251f0bff465e23c055377da
treec7fda948c191bd93a68fb14ac1b11407559d7ece
parent6bb6ec285df9a20128f8b0ed7cdaad7152208eb8
platform/x86: asus-wireless: Fix uninitialized symbol usage

'ret' will not be initialized if acpi_evaluate_integer() returns through
an error path, so it should not be used in this case. This fixes the
following Smatch static analyser error:

 drivers/platform/x86/asus-wireless.c:76 asus_wireless_method() error:
                                                     uninitialized symbol 'ret'.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/asus-wireless.c