[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aDk8uHRRlf7tO6F5@mev-dev.igk.intel.com>
Date: Fri, 30 May 2025 07:40:42 +0200
From: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
To: Li Jun <lijun01@...inos.cn>
Cc: davem@...emloft.net, edumazet@...gle.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net: ppp: remove error variable
On Fri, May 30, 2025 at 10:48:50AM +0800, Li Jun wrote:
> the error variable did not function as a variable.
> so remove it.
>
> Signed-off-by: Li Jun <lijun01@...inos.cn>
Hi,
net-next is closed till the 9 June. Plese resend when open.
I assuming you don't want to target it to net, as you don't have fixes
tag and this is cosmetic refactor, not a real issue.
Thanks
> ---
> 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
Powered by blists - more mailing lists