summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@kernel.org>2017-12-06 22:17:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-07 17:34:17 +0300
commit5f10b935d1848e439c17416f3621ffabfde0e34d (patch)
treec964a0d5daad5d1994b10cefe9ec7bfb3ed3aded /drivers/staging/lustre
parent30c1e39fb641f5887aeb263e03e1de9c85c8622a (diff)
downloadlinux-5f10b935d1848e439c17416f3621ffabfde0e34d.tar.xz
staging: lustre: llite: Remove redundant else keyword
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>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/llite/vvp_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/llite/vvp_io.c b/drivers/staging/lustre/lustre/llite/vvp_io.c
index bfae98e82d6f..e7a4778e02e4 100644
--- a/drivers/staging/lustre/lustre/llite/vvp_io.c
+++ b/drivers/staging/lustre/lustre/llite/vvp_io.c
@@ -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,