diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-03-16 17:32:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-16 17:40:18 +0300 |
commit | 29f653393e740b159933b03de25f929bec7b31b7 (patch) | |
tree | c19bca4c96ec116e1cece26e1913e49d1be8841b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 95713fb8aa039e9cd89ff545b62bd2a860c36e39 (diff) | |
download | linux-29f653393e740b159933b03de25f929bec7b31b7.tar.xz |
usb: xhci: Clean up error code in xhci_dbc_tty_register_device()
tty_port_register_device() returns error pointers on error, never NULL.
The IS_ERR_OR_NULL() function returns either 1 or 0 so it means we
return 1 on error instead of a proper error code. The caller only
checks for zero vs non-zero so this doesn't affect runtime.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.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