mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
staging: lustre: ldlm: simplify rc initialization
Simplify initialization of rc to take advantage of the fact that it is done at statement level. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d1c0d446da
commit
31664dc6f8
1 changed files with 2 additions and 1 deletions
|
|
@ -569,7 +569,8 @@ int ldlm_cli_enqueue_fini(struct obd_export *exp, struct ptlrpc_request *req,
|
|||
if (lvb_len != 0)
|
||||
rc = ldlm_fill_lvb(lock, &req->rq_pill, RCL_SERVER,
|
||||
lvb, size);
|
||||
rc = (rc != 0 ? rc : ELDLM_LOCK_ABORTED);
|
||||
if (rc == 0)
|
||||
rc = ELDLM_LOCK_ABORTED;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue