Commit 91986d7f authored by ye xingchen's avatar ye xingchen Committed by Michael Ellerman

powerpc/pseries/vas: Remove the unneeded result variable

Return the value vas_register_coproc_api() directly instead of storing it
in another redundant variable.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220825072657.229168-1-ye.xingchen@zte.com.cn
parent b37ac189
......@@ -501,14 +501,10 @@ static const struct vas_user_win_ops vops_pseries = {
int vas_register_api_pseries(struct module *mod, enum vas_cop_type cop_type,
const char *name)
{
int rc;
if (!copypaste_feat)
return -ENOTSUPP;
rc = vas_register_coproc_api(mod, cop_type, name, &vops_pseries);
return rc;
return vas_register_coproc_api(mod, cop_type, name, &vops_pseries);
}
EXPORT_SYMBOL_GPL(vas_register_api_pseries);
......
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