diff options
| author | Martin Kaiser <[email protected]> | 2022-08-06 21:55:28 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-08-16 15:17:57 +0200 |
| commit | a3cba3f05fdb249cbe1248763ffe3e0ea69f7284 (patch) | |
| tree | cb9e25736db6f5e4e4330e9551617f1303b49a63 /tools/perf/scripts/python | |
| parent | b5b26f1da5d9906a876693cc7598c54937a907d5 (diff) | |
staging: r8188eu: Hal_MappingOutPipe should return an int
Update the Hal_MappingOutPipe function to return 0 for success or -EXNIO
if the caller requested more than the number of available endpoints.
This error code is also used by usb_find_common_endpoints if a requested
endpoint was not found.
Unlike a boolean return value, a negative error code can be returned to
external functions that call the r8188eu driver, e.g. to the caller of our
probe function.
HalUsbSetQueuePipeMapping8188EUsb passes the return value of
Hal_MappingOutPipe on to its caller. We have to change its return type
from bool to int as well.
Tested-by: Philipp Hortmann <[email protected]> # Edimax N150
Signed-off-by: Martin Kaiser <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions