tun_dst: Remove opts_size
authorPravin B Shelar <pshelar@nicira.com>
Tue, 1 Sep 2015 03:05:57 +0000 (20:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2015 04:23:42 +0000 (21:23 -0700)
opts_size is only written and never read. Following patch
removes this unused variable.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst_metadata.h
net/core/dst.c

index 547ab82..af9d538 100644 (file)
@@ -7,7 +7,6 @@
 
 struct metadata_dst {
        struct dst_entry                dst;
-       size_t                          opts_len;
        union {
                struct ip_tunnel_info   tun_info;
        } u;
index 477035e..0771c8c 100644 (file)
@@ -378,7 +378,6 @@ static void __metadata_dst_init(struct metadata_dst *md_dst, u8 optslen)
        dst->output = dst_md_discard_sk;
 
        memset(dst + 1, 0, sizeof(*md_dst) + optslen - sizeof(*dst));
-       md_dst->opts_len = optslen;
 }
 
 struct metadata_dst *metadata_dst_alloc(u8 optslen, gfp_t flags)