ARPC should return 0 on success, but instead was returning the number of
jiffies left until the timeout.
This caused cport_reset() to report an error and an incorrect error
message to be printed when disabling a connection.
Reported-by: Alex Elder <elder@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Tested-by: Alex Elder <elder@linaro.org>
Signed-off-by: Alex Elder <elder@linaro.org>
*result = rpc->resp->result;
if (*result)
retval = -EREMOTEIO;
+ else
+ retval = 0;
out_arpc_del:
spin_lock_irqsave(&es2->arpc_lock, flags);