Staging: lustre: lov_io.c: remove useless unary pluses
authorLuca Wehrstedt <luca.wehrstedt@ens.fr>
Thu, 2 Apr 2015 14:33:34 +0000 (16:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2015 14:58:04 +0000 (16:58 +0200)
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>
drivers/staging/lustre/lustre/lov/lov_io.c

index 80c2ef6d0fb5d92fd8568166782994d98c36dd22..cf96e0d01e22d5d000304d46a24cc75ff2596a8e 100644 (file)
@@ -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;