[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Remove unused code in netback's net_rx_action():



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID ea12fbe91f390a3e7f352598be88c976a9bf160a
# Parent  bbd1057d38f0b5d3ad677d64a77d4dbb49003511
Remove unused code in netback's net_rx_action():
new_mfn and old_mfn are set in the end half of the function
but they are not used.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r bbd1057d38f0 -r ea12fbe91f39 
linux-2.6-xen-sparse/drivers/xen/netback/netback.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c        Thu Apr  6 
08:32:55 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c        Thu Apr  6 
08:34:30 2006
@@ -301,9 +301,6 @@
                netif   = netdev_priv(skb->dev);
                size    = skb->tail - skb->data;
 
-               /* Rederive the machine addresses. */
-               new_mfn = mcl->args[1] >> PAGE_SHIFT;
-               old_mfn = gop->mfn;
                atomic_set(&(skb_shinfo(skb)->dataref), 1);
                skb_shinfo(skb)->nr_frags = 0;
                skb_shinfo(skb)->frag_list = NULL;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.