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
7 7
8struct metadata_dst {8struct 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;
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
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
384struct metadata_dst *metadata_dst_alloc(u8 optslen, gfp_t flags)383struct 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