Skip to content

Commit 0b0588d

Browse files
dlunevdavem330
authored andcommitted
ipv6: local dev is actually unused in ip6_fragment
Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 364ae95 commit 0b0588d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎net/ipv6/ip6_output.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,6 @@ int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr)
613613

614614
static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
615615
{
616-
struct net_device *dev;
617616
struct sk_buff *frag;
618617
struct rt6_info *rt = (struct rt6_info*)skb->dst;
619618
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 *))
624623
int ptr, offset = 0, err=0;
625624
u8 *prevhdr, nexthdr = 0;
626625

627-
dev = rt->u.dst.dev;
628626
hlen = ip6_find_1stfragopt(skb, &prevhdr);
629627
nexthdr = *prevhdr;
630628

0 commit comments

Comments
 (0)