summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorLuca Wehrstedt <luca.wehrstedt@ens.fr>2015-04-02 16:33:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-02 16:58:04 +0200
commit822aa3e22f6eace077b53b28176aaf001a92a61d (patch)
tree10eb8ea311b5a6e1ef4c3c9464ef3e75265c558f /drivers/staging/lustre
parent1ca510b0ea6da1a4ff3a385f0613e045f670304e (diff)
Staging: lustre: lov_io.c: remove useless unary pluses
Replace two occurrences of "+1" with simply "1". Signed-off-by: Luca Wehrstedt <luca.wehrstedt@ens.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/lov/lov_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/lov/lov_io.c b/drivers/staging/lustre/lustre/lov/lov_io.c
index 80c2ef6d0fb5..cf96e0d01e22 100644
--- a/drivers/staging/lustre/lustre/lov/lov_io.c
+++ b/drivers/staging/lustre/lustre/lov/lov_io.c
@@ -403,7 +403,7 @@ static int lov_io_iter_init(const struct lu_env *env,
continue;
}
- end = lov_offset_mod(end, +1);
+ end = lov_offset_mod(end, 1);
sub = lov_sub_get(env, lio, stripe);
if (!IS_ERR(sub)) {
lov_io_sub_inherit(sub->sub_io, lio, stripe,
@@ -925,7 +925,7 @@ int lov_io_init_empty(const struct lu_env *env, struct cl_object *obj,
break;
case CIT_FSYNC:
case CIT_SETATTR:
- result = +1;
+ result = 1;
break;
case CIT_WRITE:
result = -EBADF;