diff options
author | Luis de Bethencourt <luisbg@kernel.org> | 2017-12-06 20:16:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-07 15:34:17 +0100 |
commit | ee4bf6ed3ab763dc7a1976465f7076db60864743 (patch) | |
tree | b1105d9a06489ad25909c9e73efe82846232e419 | |
parent | staging: pi433: Remove SET_CHECKED usage from pi433_probe (diff) | |
download | linux-ee4bf6ed3ab763dc7a1976465f7076db60864743.tar.xz linux-ee4bf6ed3ab763dc7a1976465f7076db60864743.zip |
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: Luis de Bethencourt <luisbg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/lustre/lustre/llite/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/llite/dir.c b/drivers/staging/lustre/lustre/llite/dir.c index 5b2e47c246f3..f5b67a4923e3 100644 --- a/drivers/staging/lustre/lustre/llite/dir.c +++ b/drivers/staging/lustre/lustre/llite/dir.c @@ -1339,9 +1339,9 @@ finish_req: cmd == LL_IOC_MDC_GETINFO)) { rc = 0; goto skip_lmm; - } else { - goto out_req; } + + goto out_req; } if (cmd == IOC_MDC_GETFILESTRIPE || |