aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/mdc/mdc_locks.c
diff options
context:
space:
mode:
authorShivani Bhardwaj <shivanib134@gmail.com>2015-10-15 19:46:06 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 22:34:06 -0700
commita3aa95f887f5816c4832f108b2fa4e5f2dba3e11 (patch)
tree1ba13e1d962673407dada6ec73d20ea1cd9c42ef /drivers/staging/lustre/lustre/mdc/mdc_locks.c
parentStaging: lustre: llite_lib: Remove unnecessary NULL check (diff)
downloadlinux-dev-a3aa95f887f5816c4832f108b2fa4e5f2dba3e11.tar.xz
linux-dev-a3aa95f887f5816c4832f108b2fa4e5f2dba3e11.zip
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 <shivanib134@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/mdc/mdc_locks.c')
-rw-r--r--drivers/staging/lustre/lustre/mdc/mdc_locks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/mdc/mdc_locks.c b/drivers/staging/lustre/lustre/mdc/mdc_locks.c
index e0b81eea9486..d4bf34b61f3a 100644
--- a/drivers/staging/lustre/lustre/mdc/mdc_locks.c
+++ b/drivers/staging/lustre/lustre/mdc/mdc_locks.c
@@ -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);