xen-netback: remove dead code
authorWei Liu <wei.liu2@citrix.com>
Thu, 16 May 2013 23:24:28 +0000 (23:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 May 2013 01:23:07 +0000 (18:23 -0700)
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: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c

index 37984e6d4e99f9d81dddd760e01ac416010bdea8..295a9c267df4d3d71b9ef3fac5bdb591ed1a2a7e 100644 (file)
@@ -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);
        }