Skip to content

Commit

Permalink
staging: lustre: llite: Remove redundant else keyword
Browse files Browse the repository at this point in the history
There is no need to use 'else' if in main branch 'return' is present.

Signed-off-by: Luis de Bethencourt <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
luisbg authored and gregkh committed Dec 7, 2017
1 parent 30c1e39 commit 5f10b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/lustre/lustre/llite/vvp_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5f10b93

Please sign in to comment.