opts_size is only written and never read. Following patch removes this unused variable.
Unified · Split
| @@ -7,7 +7,6 @@ · 6 unmodified lines | |||
| 7 | 7 | ||
| 8 | struct metadata_dst { | 8 | struct metadata_dst { |
| 9 | struct dst_entry dst; | 9 | struct dst_entry dst; |
| 10 | size_t opts_len; | ||
| 11 | union { | 10 | union { |
| 12 | struct ip_tunnel_info tun_info; | 11 | struct ip_tunnel_info tun_info; |
| 13 | } u; | 12 | } u; |
| @@ -378,7 +378,6 @@ static void __metadata_dst_init(struct metadata_dst *md_dst, u8 optslen) · 377 unmodified lines | |||
| 378 | dst->output = dst_md_discard_sk; | 378 | dst->output = dst_md_discard_sk; |
| 379 | 379 | ||
| 380 | memset(dst + 1, 0, sizeof(*md_dst) + optslen - sizeof(*dst)); | 380 | memset(dst + 1, 0, sizeof(*md_dst) + optslen - sizeof(*dst)); |
| 381 | md_dst->opts_len = optslen; | ||
| 382 | } | 381 | } |
| 383 | 382 | ||
| 384 | struct metadata_dst *metadata_dst_alloc(u8 optslen, gfp_t flags) | 383 | struct metadata_dst *metadata_dst_alloc(u8 optslen, gfp_t flags) |