* [PATCH net-next] tun_dst: Remove opts_size
@ 2015-09-01 3:05 Pravin B Shelar
2015-09-01 4:23 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Pravin B Shelar @ 2015-09-01 3:05 UTC (permalink / raw)
To: netdev; +Cc: Pravin B Shelar
opts_size is only written and never read. Following patch
removes this unused variable.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
---
include/net/dst_metadata.h | 1 -
net/core/dst.c | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/include/net/dst_metadata.h b/include/net/dst_metadata.h
index 547ab82..af9d538 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 477035e..0771c8c 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)
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-01 4:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-01 3:05 [PATCH net-next] tun_dst: Remove opts_size Pravin B Shelar
2015-09-01 4:23 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).