Skip to content

Commit 63b6c13

Browse files
Pravin B Shelardavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2053aeb commit 63b6c13

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

include/net/dst_metadata.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
struct metadata_dst {
99
struct dst_entry dst;
10-
size_t opts_len;
1110
union {
1211
struct ip_tunnel_info tun_info;
1312
} u;

net/core/dst.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ static void __metadata_dst_init(struct metadata_dst *md_dst, u8 optslen)
378378
dst->output = dst_md_discard_sk;
379379

380380
memset(dst + 1, 0, sizeof(*md_dst) + optslen - sizeof(*dst));
381-
md_dst->opts_len = optslen;
382381
}
383382

384383
struct metadata_dst *metadata_dst_alloc(u8 optslen, gfp_t flags)

0 commit comments

Comments
 (0)