summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorJames Simmons <jsimmons@infradead.org>2016-03-11 20:29:49 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-11 22:26:02 -0800
commit9a41340a41597cc136f4f062e36a2c8f37ea8404 (patch)
tree479b759bf796245f9d89923cea350ffa3b4f8804 /drivers/staging
parentb794d796b45907a82c3541d64dc3947039f1d15e (diff)
staging: lustre: test for proper errno code in lstcon_rpc_trans_abort
The error value returned will be -ETIMEDOUT not ETIMEDOUT. This fixes a typo that prevents us from handling the error case. Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/lustre/lnet/selftest/conrpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/conrpc.c b/drivers/staging/lustre/lnet/selftest/conrpc.c
index cdb660e33998..dc454ca8cd90 100644
--- a/drivers/staging/lustre/lnet/selftest/conrpc.c
+++ b/drivers/staging/lustre/lnet/selftest/conrpc.c
@@ -313,7 +313,7 @@ lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error)
sfw_abort_rpc(rpc);
- if (error != ETIMEDOUT)
+ if (error != -ETIMEDOUT)
continue;
nd = crpc->crp_node;