staging: lustre: llite: Remove redundant else keyword
authorLuis de Bethencourt <luisbg@kernel.org>
Wed, 6 Dec 2017 19:17:00 +0000 (19:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2017 14:34:17 +0000 (15:34 +0100)
There is no need to use 'else' if in main branch 'return' is present.

Signed-off-by: Luis de Bethencourt <luisbg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/vvp_io.c

index bfae98e82d6f3c0e1f4ab217f64f4dc75e65defd..e7a4778e02e4f53559083233680e6bd6fb6c664e 100644 (file)
@@ -699,7 +699,7 @@ static int vvp_io_read_start(const struct lu_env *env,
        result = vvp_prep_size(env, obj, io, pos, tot, &exceed);
        if (result != 0)
                return result;
-       else if (exceed != 0)
+       if (exceed != 0)
                goto out;
 
        LU_OBJECT_HEADER(D_INODE, env, &obj->co_lu,