* [PATCH linux-next] powerpc/pseries/vas: Remove the unneeded result variable
@ 2022-08-25 7:26 cgel.zte
2022-10-04 13:25 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: cgel.zte @ 2022-08-25 7:26 UTC (permalink / raw)
To: mpe
Cc: npiggin, christophe.leroy, haren, wangborong, nathanl,
Julia.Lawall, nick.child, linuxppc-dev, linux-kernel,
ye xingchen, Zeal Robot
From: ye xingchen <ye.xingchen@zte.com.cn>
Return the value vas_register_coproc_api() directly instead of storing it
in another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
arch/powerpc/platforms/pseries/vas.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/vas.c b/arch/powerpc/platforms/pseries/vas.c
index 7e6e6dd2e33e..46ea4e252f97 100644
--- a/arch/powerpc/platforms/pseries/vas.c
+++ b/arch/powerpc/platforms/pseries/vas.c
@@ -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);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH linux-next] powerpc/pseries/vas: Remove the unneeded result variable
2022-08-25 7:26 [PATCH linux-next] powerpc/pseries/vas: Remove the unneeded result variable cgel.zte
@ 2022-10-04 13:25 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2022-10-04 13:25 UTC (permalink / raw)
To: cgel.zte, mpe
Cc: nathanl, linux-kernel, Zeal Robot, linuxppc-dev, haren,
ye xingchen, nick.child, christophe.leroy, Julia.Lawall, npiggin,
wangborong
On Thu, 25 Aug 2022 07:26:57 +0000, cgel.zte@gmail.com wrote:
> From: ye xingchen <ye.xingchen@zte.com.cn>
>
> Return the value vas_register_coproc_api() directly instead of storing it
> in another redundant variable.
>
>
Applied to powerpc/next.
[1/1] powerpc/pseries/vas: Remove the unneeded result variable
https://git.kernel.org/powerpc/c/91986d7f0300c2c01722e0eac5119bb0946fe9b5
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-04 13:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 7:26 [PATCH linux-next] powerpc/pseries/vas: Remove the unneeded result variable cgel.zte
2022-10-04 13:25 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).