History

tun_dst: Remove opts_size

opts_size is only written and never read. Following patch removes this unused variable.

Pravin B Shelar committed 11 years ago

Commit 63b6c131 parent 2053aeb2 files · +0 −2Browse files

Unified · Split

2 files
  1. include/net/dst_metadata.h +0 −1
  2. net/core/dst.c +0 −1
include/net/dst_metadata.h+0−1
@@ -7,7 +7,6 @@ · 6 unmodified lines
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+0−1
@@ -378,7 +378,6 @@ static void __metadata_dst_init(struct metadata_dst *md_dst, u8 optslen) · 377 unmodified lines
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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t