summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorJames Simmons2016-03-12 02:29:49 +0100
committerGreg Kroah-Hartman2016-03-12 07:26:02 +0100
commit9a41340a41597cc136f4f062e36a2c8f37ea8404 (patch)
tree479b759bf796245f9d89923cea350ffa3b4f8804 /drivers/staging/lustre
parentstaging: lustre: filter remaining extra spacing for lnet selftest (diff)
downloadkernel-qcow2-linux-9a41340a41597cc136f4f062e36a2c8f37ea8404.tar.gz
kernel-qcow2-linux-9a41340a41597cc136f4f062e36a2c8f37ea8404.tar.xz
kernel-qcow2-linux-9a41340a41597cc136f4f062e36a2c8f37ea8404.zip
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/lustre')
-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;