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

[Xen-devel] [PATCH] clean up net_rx_action


code clean up: net_rx_action()
new_mfn and old_mfn are set in the end half of the function.
but they are not used. remove them.

-- 
yamahata
changeset:   9545:b33a111ba46659dad195f31b909920e0e7669583
tag:         tip
user:        yamahata@xxxxxxxxxxxxx
date:        Thu Apr  6 14:07:51 2006 +0900
files:       linux-2.6-xen-sparse/drivers/xen/netback/netback.c
description:
code clean up: net_rx_action()
new_mfn and old_mfn are set in the end half of the function.
but they are not used. remove them.

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


diff -r 8f7aad20b4a5ba33762db56bb7e5cb94fe24395e -r b33a111ba46659dad195f31b909920e0e7669583 linux-2.6-xen-sparse/drivers/xen/netback/netback.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c	Wed Apr  5 19:30:02 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c	Thu Apr  6 14:07:51 2006 +0900
@@ -301,9 +301,6 @@ static void net_rx_action(unsigned long 
 		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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


This mailing list archive is a service of Copilotco.