diff options
-rw-r--r-- | net/ipv6/ip6_output.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 3df2c442d90b..f22393e11666 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -613,7 +613,6 @@ int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) | |||
613 | 613 | ||
614 | static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) | 614 | static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) |
615 | { | 615 | { |
616 | struct net_device *dev; | ||
617 | struct sk_buff *frag; | 616 | struct sk_buff *frag; |
618 | struct rt6_info *rt = (struct rt6_info*)skb->dst; | 617 | struct rt6_info *rt = (struct rt6_info*)skb->dst; |
619 | struct ipv6_pinfo *np = skb->sk ? inet6_sk(skb->sk) : NULL; | 618 | struct ipv6_pinfo *np = skb->sk ? inet6_sk(skb->sk) : NULL; |
@@ -624,7 +623,6 @@ static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) | |||
624 | int ptr, offset = 0, err=0; | 623 | int ptr, offset = 0, err=0; |
625 | u8 *prevhdr, nexthdr = 0; | 624 | u8 *prevhdr, nexthdr = 0; |
626 | 625 | ||
627 | dev = rt->u.dst.dev; | ||
628 | hlen = ip6_find_1stfragopt(skb, &prevhdr); | 626 | hlen = ip6_find_1stfragopt(skb, &prevhdr); |
629 | nexthdr = *prevhdr; | 627 | nexthdr = *prevhdr; |
630 | 628 | ||