diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-10-18 05:22:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-18 10:34:27 -0400 |
commit | 7ab488951aa536d52feb3690d204a693edf4f433 (patch) | |
tree | f613aeee5cd85d15ee5f675c00cc5d8c2c053159 /net/ipv4/tcp_ipv4.c | |
parent | a56177e18f2e44499a8bf5bc03dbe896dbec657d (diff) |
tcp: Remove unused but set variable
Remove the unused but set variable icsk in listening_get_next to fix the
following GCC warning when building with 'W=1':
net/ipv4/tcp_ipv4.c: In function ‘listening_get_next’:
net/ipv4/tcp_ipv4.c:1890:31: warning: variable ‘icsk’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index bd5e8d10893f..79d55eb3ec3f 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1887,7 +1887,6 @@ static void *listening_get_next(struct seq_file *seq, void *cur) | |||
1887 | struct tcp_iter_state *st = seq->private; | 1887 | struct tcp_iter_state *st = seq->private; |
1888 | struct net *net = seq_file_net(seq); | 1888 | struct net *net = seq_file_net(seq); |
1889 | struct inet_listen_hashbucket *ilb; | 1889 | struct inet_listen_hashbucket *ilb; |
1890 | struct inet_connection_sock *icsk; | ||
1891 | struct sock *sk = cur; | 1890 | struct sock *sk = cur; |
1892 | 1891 | ||
1893 | if (!sk) { | 1892 | if (!sk) { |
@@ -1909,7 +1908,6 @@ get_sk: | |||
1909 | continue; | 1908 | continue; |
1910 | if (sk->sk_family == st->family) | 1909 | if (sk->sk_family == st->family) |
1911 | return sk; | 1910 | return sk; |
1912 | icsk = inet_csk(sk); | ||
1913 | } | 1911 | } |
1914 | spin_unlock_bh(&ilb->lock); | 1912 | spin_unlock_bh(&ilb->lock); |
1915 | st->offset = 0; | 1913 | st->offset = 0; |