From: James Simmons Date: Sat, 12 Mar 2016 01:29:49 +0000 (-0500) Subject: staging: lustre: test for proper errno code in lstcon_rpc_trans_abort X-Git-Tag: v4.6-rc1~103^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9a41340a41597cc136f4f062e36a2c8f37ea8404;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;