diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-02-18 20:52:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-19 11:08:52 +0100 |
commit | 24f772409b2426a6545eb0d96b297b8913d70539 (patch) | |
tree | 179a9c0352b4020c2c469f2a1530406815c906a0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 10892847de816edf4f8f2151174dc557c4a3f63f (diff) |
usb: core: Make use of acpi_evaluate_object() status
Compiler is not happy about dangling variable:
.../core/usb-acpi.c: In function ‘usb_acpi_get_connect_type’:
.../core/usb-acpi.c:90:14: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
90 | acpi_status status;
| ^~~~~~
Make use of it by checking the status and bail out in case of error.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200218185207.62527-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions