Skip to contentSkip to conversation

net/ipv4/ip_output.c: Removal of unused variable in ip_fragment()

PATCH Applied George Kadianakis 2 participants 2 messages Jul 6, 2010 – Jul 7, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ipv4/ip_output.c: Removal of unused variable in ip_fragment()

From: George Kadianakis <[email protected]>

Removal of unused integer variable in ip_fragment().

---
 net/ipv4/ip_output.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
net/ipv4/ip_output.c +1 -2
index 041d41d..a83b876 100644
@@ -442,7 +442,6 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from)
 int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
 {
 	struct iphdr *iph;
-	int raw = 0;
 	int ptr;
 	struct net_device *dev;
 	struct sk_buff *skb2;
@@ -580,7 +579,7 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
 
 slow_path:
 	left = skb->len - hlen;		/* Space per frame */
-	ptr = raw + hlen;		/* Where to start from */
+	ptr = hlen;		/* Where to start from */
 
 	/* for bridged IP traffic encapsulated inside f.e. a vlan header,
 	 * we need to make room for the encapsulating header