Skip to content

Commit

Permalink
tun_dst: Remove opts_size
Browse files Browse the repository at this point in the history
opts_size is only written and never read. Following patch
removes this unused variable.

Signed-off-by: Pravin B Shelar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Pravin B Shelar authored and davem330 committed Sep 1, 2015
1 parent 2053aeb commit 63b6c13
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion include/net/dst_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

struct metadata_dst {
struct dst_entry dst;
size_t opts_len;
union {
struct ip_tunnel_info tun_info;
} u;
Expand Down
1 change: 0 additions & 1 deletion net/core/dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63b6c13

Please sign in to comment.