diff options
author | Rashika Kheria <[email protected]> | 2013-10-17 19:58:45 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2013-10-17 09:06:44 -0700 |
commit | b0834c8728d90ea79a76e9d3d6fa573beb37488d (patch) | |
tree | f12317e7cc3df3c512fa172fb9a33c599965a697 | |
parent | eac2e8c6f50a4a67513741251b18dfa7ca282e2c (diff) |
Staging: lustre: Removal of assignment in if condition in conrpc.c
This patch fixes the following checkpatch.pl error in conrpc.c-
ERROR: do not use assignment in if condition
Signed-off-by: Rashika Kheria <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/conrpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/conrpc.c b/drivers/staging/lustre/lnet/selftest/conrpc.c index 88a495641faa..9a52f25b72e9 100644 --- a/drivers/staging/lustre/lnet/selftest/conrpc.c +++ b/drivers/staging/lustre/lnet/selftest/conrpc.c @@ -531,7 +531,9 @@ lstcon_rpc_trans_interpreter(lstcon_rpc_trans_t *trans, if (readent == NULL) continue; - if ((error = readent(trans->tas_opc, msg, ent)) != 0) + error = readent(trans->tas_opc, msg, ent); + + if (error != 0) return error; } |