* [PATCH] net: ppp: remove error variable
@ 2025-05-30 2:50 Li Jun
2025-05-30 18:17 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Li Jun @ 2025-05-30 2:50 UTC (permalink / raw)
To: davem, edumazet, lijun01, netdev, linux-kernel
the error variable did not function as a variable.
so remove it.
Signed-off-by: Li Jun <lijun01@kylinos.cn>
---
drivers/net/ppp/pptp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c
index 5feaa70b5f47..67239476781e 100644
--- a/drivers/net/ppp/pptp.c
+++ b/drivers/net/ppp/pptp.c
@@ -501,7 +501,6 @@ static int pptp_release(struct socket *sock)
{
struct sock *sk = sock->sk;
struct pppox_sock *po;
- int error = 0;
if (!sk)
return 0;
@@ -526,7 +525,7 @@ static int pptp_release(struct socket *sock)
release_sock(sk);
sock_put(sk);
- return error;
+ return 0;
}
static void pptp_sock_destruct(struct sock *sk)
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] net: ppp: remove error variable
2025-05-30 2:50 [PATCH] net: ppp: remove error variable Li Jun
@ 2025-05-30 18:17 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2025-05-30 18:17 UTC (permalink / raw)
To: Li Jun; +Cc: davem, edumazet, netdev, linux-kernel
On Fri, May 30, 2025 at 10:50:40AM +0800, Li Jun wrote:
> the error variable did not function as a variable.
> so remove it.
>
> Signed-off-by: Li Jun <lijun01@kylinos.cn>
Hi Li Jun,
Overall your patch looks good to me but as a cleanup for Networking
code it would be best to explicitly target net-next like this:
Subject: [PATCH net-next] ...
But more importantly, net-next is currently closed, so please
repost your patch once it re-opens.
For reference, information on the development process can be found here.
https://docs.kernel.org/process/maintainer-netdev.html
## Form letter - net-next-closed
The merge window for v6.16 has begun and therefore net-next is closed
for new drivers, features, code refactoring and optimizations. We are
currently accepting bug fixes only.
Please repost when net-next reopens after June 8th.
RFC patches sent for review only are obviously welcome at any time.
--
pw-bot: defer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-30 18:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-30 2:50 [PATCH] net: ppp: remove error variable Li Jun
2025-05-30 18:17 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®