From: Simon Horman <horms@verge.net.au>
To: Julian Anastasov <ja@ssi.bg>, pablo@netfilter.org
Cc: GuoYong Zheng <zhenggy@chinatelecom.cn>,
lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org,
netdev@vger.kernel.org, coreteam@netfilter.org,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ipvs: remove unused variable for ip_vs_new_dest
Date: Sun, 14 Nov 2021 19:02:06 +0100 [thread overview]
Message-ID: <20211114180206.GA2757@vergenet.net> (raw)
In-Reply-To: <25e945b7-9027-43cb-f79c-573fdce42a26@ssi.bg>
On Sat, Nov 13, 2021 at 11:56:36AM +0200, Julian Anastasov wrote:
>
> Hello,
>
> On Fri, 5 Nov 2021, GuoYong Zheng wrote:
>
> > The dest variable is not used after ip_vs_new_dest anymore in
> > ip_vs_add_dest, do not need pass it to ip_vs_new_dest, remove it.
> >
> > Signed-off-by: GuoYong Zheng <zhenggy@chinatelecom.cn>
>
> Looks good to me for -next, thanks!
>
> Acked-by: Julian Anastasov <ja@ssi.bg>
Thanks GuoYong,
Acked-by: Simon Horman <horms@verge.net.au>
Pablo, please consider this for nf-next at your convenience.
>
> > ---
> > net/netfilter/ipvs/ip_vs_ctl.c | 7 ++-----
> > 1 file changed, 2 insertions(+), 5 deletions(-)
> >
> > diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
> > index e62b40b..494399d 100644
> > --- a/net/netfilter/ipvs/ip_vs_ctl.c
> > +++ b/net/netfilter/ipvs/ip_vs_ctl.c
> > @@ -959,8 +959,7 @@ static void ip_vs_trash_cleanup(struct netns_ipvs *ipvs)
> > * Create a destination for the given service
> > */
> > static int
> > -ip_vs_new_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest,
> > - struct ip_vs_dest **dest_p)
> > +ip_vs_new_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest)
> > {
> > struct ip_vs_dest *dest;
> > unsigned int atype, i;
> > @@ -1020,8 +1019,6 @@ static void ip_vs_trash_cleanup(struct netns_ipvs *ipvs)
> > spin_lock_init(&dest->stats.lock);
> > __ip_vs_update_dest(svc, dest, udest, 1);
> >
> > - *dest_p = dest;
> > -
> > LeaveFunction(2);
> > return 0;
> >
> > @@ -1095,7 +1092,7 @@ static void ip_vs_trash_cleanup(struct netns_ipvs *ipvs)
> > /*
> > * Allocate and initialize the dest structure
> > */
> > - ret = ip_vs_new_dest(svc, udest, &dest);
> > + ret = ip_vs_new_dest(svc, udest);
> > }
> > LeaveFunction(2);
> >
> > --
> > 1.8.3.1
>
> Regards
>
> --
> Julian Anastasov <ja@ssi.bg>
>
next prev parent reply other threads:[~2021-11-14 18:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-05 11:39 GuoYong Zheng
2021-11-13 9:56 ` Julian Anastasov
2021-11-14 18:02 ` Simon Horman [this message]
2021-11-18 1:09 ` zhenggy
2021-11-30 21:46 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211114180206.GA2757@vergenet.net \
--to=horms@verge.net.au \
--cc=coreteam@netfilter.org \
--cc=ja@ssi.bg \
--cc=linux-kernel@vger.kernel.org \
--cc=lvs-devel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=zhenggy@chinatelecom.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®