diff options
author | Kelley Nielsen <kelleynnn@gmail.com> | 2013-10-29 16:06:36 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 17:11:36 -0700 |
commit | b1bdd4d3ed3b501063d81618be547be0cfe61b0f (patch) | |
tree | 8357b15cccb299a45c8a5e6704f96a56cb02b285 /drivers/scsi/ips.c | |
parent | 43fc69b1122b8a3e540b9d6ab36dc9840fa918ff (diff) |
staging: ft1000: return values corrected in scram_start_dwnld
The ft1000 usb driver ignores expected Linux error codes, and uses two
values defined in ft1000_usb.h: STATUS_SUCCESS 0, and STATUS_FAILURE
0x1001; and sometimes -1. This patch changes the return values of the
function scram_start_dwnld to match the status of the handshake returned
by its helper functions, get_handshake and get_handshake_usb. If the
handshake fails, -ENETRESET is returned instead of the inappropriate
STATUS_FAILURE. Also, a new test has been added to differentiate failure
due to timeout from failure due to net reset (the default). -ETIMEDOUT
is returned in this case. Finally, 0 is returned on success instead of
STATUS_SUCCESS.
Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/ips.c')
0 files changed, 0 insertions, 0 deletions