summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2015-08-31 20:05:57 -0700
committerDavid S. Miller <davem@davemloft.net>2015-08-31 21:23:42 -0700
commit63b6c13dbb7d3e36f031629f7e4e86dacfcab8cf (patch)
treea8b7b2357c8f704243b226bc432a15071cf8f95c
parent2053aeb69a53224717296db31b13d5b45b4f1a0e (diff)
downloadlinux-63b6c13dbb7d3e36f031629f7e4e86dacfcab8cf.tar.bz2
tun_dst: Remove opts_size
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>
-rw-r--r--include/net/dst_metadata.h1
-rw-r--r--net/core/dst.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/include/net/dst_metadata.h b/include/net/dst_metadata.h
index 547ab8241593..af9d5382f6cb 100644
--- a/include/net/dst_metadata.h
+++ b/include/net/dst_metadata.h
@@ -7,7 +7,6 @@
struct metadata_dst {
struct dst_entry dst;
- size_t opts_len;
union {
struct ip_tunnel_info tun_info;
} u;
diff --git a/net/core/dst.c b/net/core/dst.c
index 477035ed7903..0771c8cb9307 100644
--- a/net/core/dst.c
+++ b/net/core/dst.c
@@ -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)