Commit 21c25a9f authored by Luca Wehrstedt's avatar Luca Wehrstedt Committed by Greg Kroah-Hartman

Staging: lustre: lov_io.c: remove useless unary pluses

Replace two occurrences of "+1" with simply "1".
Signed-off-by: default avatarLuca Wehrstedt <luca.wehrstedt@ens.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0b0033a1
...@@ -391,7 +391,7 @@ static int lov_io_iter_init(const struct lu_env *env, ...@@ -391,7 +391,7 @@ static int lov_io_iter_init(const struct lu_env *env,
endpos, &start, &end)) endpos, &start, &end))
continue; continue;
end = lov_offset_mod(end, +1); end = lov_offset_mod(end, 1);
sub = lov_sub_get(env, lio, stripe); sub = lov_sub_get(env, lio, stripe);
if (!IS_ERR(sub)) { if (!IS_ERR(sub)) {
lov_io_sub_inherit(sub->sub_io, lio, stripe, lov_io_sub_inherit(sub->sub_io, lio, stripe,
...@@ -913,7 +913,7 @@ int lov_io_init_empty(const struct lu_env *env, struct cl_object *obj, ...@@ -913,7 +913,7 @@ int lov_io_init_empty(const struct lu_env *env, struct cl_object *obj,
break; break;
case CIT_FSYNC: case CIT_FSYNC:
case CIT_SETATTR: case CIT_SETATTR:
result = +1; result = 1;
break; break;
case CIT_WRITE: case CIT_WRITE:
result = -EBADF; result = -EBADF;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment