Skip to content

Commit

Permalink
staging: lustre: Delete unnecessary goto statements in six functions
Browse files Browse the repository at this point in the history
Six goto statements referred to a source code position
directly behind them.
Thus omit such unnecessary jumps.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
elfring authored and gregkh committed Dec 21, 2015
1 parent fb7a020 commit 3af7370
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion drivers/staging/lustre/lustre/llite/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,6 @@ static struct dentry *ll_lookup_it(struct inode *parent, struct dentry *dentry,
retval = NULL;
else
retval = dentry;
goto out;
out:
if (req)
ptlrpc_req_finished(req);
Expand Down
7 changes: 0 additions & 7 deletions drivers/staging/lustre/lustre/mdc/mdc_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,6 @@ static int mdc_ioc_hsm_progress(struct obd_export *exp,
ptlrpc_request_set_replen(req);

rc = mdc_queue_wait(req);
goto out;
out:
ptlrpc_req_finished(req);
return rc;
Expand Down Expand Up @@ -1216,7 +1215,6 @@ static int mdc_ioc_hsm_ct_register(struct obd_import *imp, __u32 archives)
ptlrpc_request_set_replen(req);

rc = mdc_queue_wait(req);
goto out;
out:
ptlrpc_req_finished(req);
return rc;
Expand Down Expand Up @@ -1282,7 +1280,6 @@ static int mdc_ioc_hsm_ct_unregister(struct obd_import *imp)
ptlrpc_request_set_replen(req);

rc = mdc_queue_wait(req);
goto out;
out:
ptlrpc_req_finished(req);
return rc;
Expand Down Expand Up @@ -1362,8 +1359,6 @@ static int mdc_ioc_hsm_state_set(struct obd_export *exp,
ptlrpc_request_set_replen(req);

rc = mdc_queue_wait(req);
goto out;

out:
ptlrpc_req_finished(req);
return rc;
Expand Down Expand Up @@ -1427,8 +1422,6 @@ static int mdc_ioc_hsm_request(struct obd_export *exp,
ptlrpc_request_set_replen(req);

rc = mdc_queue_wait(req);
goto out;

out:
ptlrpc_req_finished(req);
return rc;
Expand Down

0 comments on commit 3af7370

Please sign in to comment.