diff options
| author | Colin Ian King <colin.king@canonical.com> | 2020-01-14 21:16:04 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-15 15:11:41 +0300 |
| commit | 4cc41cbce536876678b35e03c4a8a7bb72c78fa9 (patch) | |
| tree | b8fa3c64f15b109d7f037e6c065b72aa7e0f3659 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 8297ca5e8c70ddb58cf03cd0411929ab87a44860 (diff) | |
| download | linux-4cc41cbce536876678b35e03c4a8a7bb72c78fa9.tar.xz | |
staging: wlan-ng: ensure error return is actually returned
Currently when the call to prism2sta_ifst fails a netdev_err error
is reported, error return variable result is set to -1 but the
function always returns 0 for success. Fix this by returning
the error value in variable result rather than 0.
Addresses-Coverity: ("Unused value")
Fixes: 00b3ed168508 ("Staging: add wlan-ng prism2 usb driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200114181604.390235-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
