public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] xen-netback: remove dead code
Date: Tue, 7 May 2013 11:00:48 +0100	[thread overview]
Message-ID: <1367920848.26321.66.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <1367854820-4129-1-git-send-email-wei.liu2@citrix.com>

On Mon, 2013-05-06 at 16:40 +0100, Wei Liu wrote:
> The array mmap_pages is never touched in the initialization function. This is
> remnant of mapping mechanism, which does exist upstream.
                                         ^not

Can you add a quick note about to the changelog about where this array
is now initialised and freed please, with that:

> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>

Please resubmit when Dave opens net-next for new development.

Ian.

> ---
>  drivers/net/xen-netback/netback.c |    4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
> index 37984e6..295a9c2 100644
> --- a/drivers/net/xen-netback/netback.c
> +++ b/drivers/net/xen-netback/netback.c
> @@ -1939,10 +1939,6 @@ static int __init netback_init(void)
>  failed_init:
>  	while (--group >= 0) {
>  		struct xen_netbk *netbk = &xen_netbk[group];
> -		for (i = 0; i < MAX_PENDING_REQS; i++) {
> -			if (netbk->mmap_pages[i])
> -				__free_page(netbk->mmap_pages[i]);
> -		}
>  		del_timer(&netbk->net_timer);
>  		kthread_stop(netbk->task);
>  	}

      parent reply	other threads:[~2013-05-07 10:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-06 15:40 [PATCH] xen-netback: remove dead code Wei Liu
2013-05-06 16:10 ` Wei Liu
2013-05-06 16:17   ` David Miller
2013-05-06 16:22     ` Wei Liu
2013-05-07 10:00 ` Ian Campbell [this message]

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=1367920848.26321.66.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=netdev@vger.kernel.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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