diff options
author | João Paulo Rechi Vita <jprvita@gmail.com> | 2018-06-29 15:12:46 -0700 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-07-02 16:48:22 +0300 |
commit | eca4c4e47eb0658ad251f0bff465e23c055377da (patch) | |
tree | c7fda948c191bd93a68fb14ac1b11407559d7ece /drivers/platform/mellanox | |
parent | 6bb6ec285df9a20128f8b0ed7cdaad7152208eb8 (diff) |
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>
Diffstat (limited to 'drivers/platform/mellanox')
0 files changed, 0 insertions, 0 deletions