Commit f1db320e authored by Wei Liu's avatar Wei Liu Committed by David S. Miller

xen-netback: remove dead code

The array mmap_pages is never touched in the initialization function. This is
remnant of mapping mechanism, which does not exist upstream. In current
upstream code this array only tracks usage of pages inside netback. Those
pages are allocated when contructing a SKB and passed directly to network
subsystem.
Signed-off-by: default avatarWei Liu <wei.liu2@citrix.com>
Acked-by: default avatarIan Campbell <ian.campbell@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 650c8496
...@@ -1939,10 +1939,6 @@ static int __init netback_init(void) ...@@ -1939,10 +1939,6 @@ static int __init netback_init(void)
failed_init: failed_init:
while (--group >= 0) { while (--group >= 0) {
struct xen_netbk *netbk = &xen_netbk[group]; 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); del_timer(&netbk->net_timer);
kthread_stop(netbk->task); kthread_stop(netbk->task);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment