mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-14 23:36:30 +07:00
staging: lustre: Remove unnecessary return capture
Instead of storing the return value of a function call into a variable and then returning it, we can club the two into a single return statement. This change was made using the following semantic patch by Coccinelle: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Rehas Sachdeva <aquannie@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3428e918e2
commit
29b7d5817b
@ -2488,9 +2488,8 @@ static int mdc_set_info_async(const struct lu_env *env,
|
||||
}
|
||||
spin_unlock(&imp->imp_lock);
|
||||
|
||||
rc = do_set_info_async(imp, MDS_SET_INFO, LUSTRE_MDS_VERSION,
|
||||
keylen, key, vallen, val, set);
|
||||
return rc;
|
||||
return do_set_info_async(imp, MDS_SET_INFO, LUSTRE_MDS_VERSION,
|
||||
keylen, key, vallen, val, set);
|
||||
}
|
||||
if (KEY_IS(KEY_SPTLRPC_CONF)) {
|
||||
sptlrpc_conf_client_adapt(exp->exp_obd);
|
||||
|
Loading…
Reference in New Issue
Block a user