Staging: lustre: mdc_locks: Remove extra test expression
PATCH 1/1 Staging: lustre: mdc_locks: Remove extra test expression
struct it is already NULL tested before so, it should be removed from the if test expression.
Signed-off-by Shivani Bhardwaj <[email protected]>
--- drivers/staging/lustre/lustre/mdc/mdc_locks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/mdc/mdc_locks.c +1 -1
@@ -885,7 +885,7 @@ resend:/* Retry the create infinitely when we get -EINPROGRESS from * server. This is required by the new quota design. */ -if (it && it->it_op &IT_CREAT && +if (it->it_op &IT_CREAT && (int )lockrep->lock_policy_res2 == -EINPROGRESS ) {mdc_clear_replay_flag (req, rc);ptlrpc_req_finished (req);
Signature · 1 line
2.1.0
Quoted 13 lines · On Thursday 15 October 2015 19:46:06 Shivani Bhardwaj wrote:
struct it is already NULL tested before so, it should be removed from the if test expression.
Signed-off-by Shivani Bhardwaj <[email protected]>--- drivers/staging/lustre/lustre/mdc/mdc_locks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/lustre/lustre/mdc/mdc_locks.c +0
-0
drivers/staging/lustre/lustre/mdc/mdc_locks.c resend: · line 891
Quoted 8 lines
drivers/staging/lustre/lustre/mdc/mdc_locks.c +1
-1@@ -885,7 +885,7 @@ resend:/* Retry the create infinitely when we get -EINPROGRESS from * server. This is required by the new quota design. */ -if (it && it->it_op &IT_CREAT && +if (it->it_op &IT_CREAT && (int )lockrep->lock_policy_res2 == -EINPROGRESS ) {mdc_clear_replay_flag (req, rc);ptlrpc_req_finished (req);
It took me a while to figure out that this is actually correct, but it is.
Reviewed-by Arnd Bergmann <[email protected]>