Skip to content

Commit

Permalink
Staging: lustre: lov_io.c: remove useless unary pluses
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luca Wehrstedt authored and Greg Kroah-Hartman committed Apr 2, 2015
1 parent 1ca510b commit 822aa3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/lustre/lustre/lov/lov_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 822aa3e

Please sign in to comment.