Commit ee4bf6ed authored by Luis de Bethencourt's avatar Luis de Bethencourt Committed by Greg Kroah-Hartman

staging: lustre: llite: Remove else after goto

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: default avatarLuis de Bethencourt <luisbg@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 54fc95a7
...@@ -1339,9 +1339,9 @@ static long ll_dir_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -1339,9 +1339,9 @@ static long ll_dir_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
cmd == LL_IOC_MDC_GETINFO)) { cmd == LL_IOC_MDC_GETINFO)) {
rc = 0; rc = 0;
goto skip_lmm; goto skip_lmm;
} else {
goto out_req;
} }
goto out_req;
} }
if (cmd == IOC_MDC_GETFILESTRIPE || if (cmd == IOC_MDC_GETFILESTRIPE ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment