ipv6: mcast: remove dead code
authorEric Dumazet <edumazet@google.com>
Tue, 16 Jan 2018 23:40:00 +0000 (15:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jan 2018 19:17:44 +0000 (14:17 -0500)
Since commit 41033f029e39 ("snmp: Remove duplicate OUTMCAST stat
increment") one line of code became unneeded.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mcast.c

index 40b223a930a39e010ac744bc3b4b32b28e9bc5e8..6a5d0e39bb87f98bef7de90ab2fa63d9666c00ce 100644 (file)
@@ -1655,8 +1655,6 @@ static void mld_sendpack(struct sk_buff *skb)
        if (err)
                goto err_out;
 
-       payload_len = skb->len;
-
        err = NF_HOOK(NFPROTO_IPV6, NF_INET_LOCAL_OUT,
                      net, net->ipv6.igmp_sk, skb, NULL, skb->dev,
                      dst_output);