Skip to content

Commit

Permalink
staging: lustre: llite: Remove else after goto
Browse files Browse the repository at this point in the history
If an "if" branch is terminated by a "goto", there's no need to have an
"else" statement and an indented block of code.

Remove the "else" statement to simplify the code flow.

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 54fc95a commit ee4bf6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/lustre/lustre/llite/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,9 +1339,9 @@ static long ll_dir_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
cmd == LL_IOC_MDC_GETINFO)) {
rc = 0;
goto skip_lmm;
} else {
goto out_req;
}

goto out_req;
}

if (cmd == IOC_MDC_GETFILESTRIPE ||
Expand Down

0 comments on commit ee4bf6e

Please sign in to comment.