* [PATCH] net/ipv4/ip_output.c: Removal of unused variable in ip_fragment()
@ 2010-07-06 21:44 George Kadianakis
2010-07-07 22:45 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: George Kadianakis @ 2010-07-06 21:44 UTC (permalink / raw)
To: davem; +Cc: netdev, linux-kernel
From: George Kadianakis <desnacked@gmail.com>
Removal of unused integer variable in ip_fragment().
Signed-off-by: George Kadianakis <desnacked@gmail.com>
---
net/ipv4/ip_output.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 041d41d..a83b876 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net/ipv4/ip_output.c: Removal of unused variable in ip_fragment()
2010-07-06 21:44 [PATCH] net/ipv4/ip_output.c: Removal of unused variable in ip_fragment() George Kadianakis
@ 2010-07-07 22:45 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-07-07 22:45 UTC (permalink / raw)
To: desnacked; +Cc: netdev, linux-kernel
From: George Kadianakis <desnacked@gmail.com>
Date: Wed, 07 Jul 2010 00:44:12 +0300
> From: George Kadianakis <desnacked@gmail.com>
>
> Removal of unused integer variable in ip_fragment().
>
> Signed-off-by: George Kadianakis <desnacked@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-07 22:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-06 21:44 [PATCH] net/ipv4/ip_output.c: Removal of unused variable in ip_fragment() George Kadianakis
2010-07-07 22:45 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).