diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-11-14 22:53:22 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:43 -0500 |
commit | a928630a2ffeaf6aa9a6b78456935b6ab1be3066 (patch) | |
tree | 0be1f64ffb8234485cfbfb78c958f47962286fea /net/ipv4/tcp_minisocks.c | |
parent | 17c157c889f4b07258af6bfec9e4e9dcf3c00178 (diff) |
[TCP]: Fix some warning when MD5 is disabled.
Just some mis-placed ifdefs:
net/ipv4/tcp_minisocks.c: In function ‘tcp_twsk_destructor’:
net/ipv4/tcp_minisocks.c:364: warning: unused variable ‘twsk’
net/ipv6/tcp_ipv6.c:1846: warning: ‘tcp_sock_ipv6_specific’ defined but not used
net/ipv6/tcp_ipv6.c:1877: warning: ‘tcp_sock_ipv6_mapped_specific’ defined but not used
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index ac55d8892cf1..4a0ee901a888 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c | |||
@@ -361,8 +361,8 @@ void tcp_time_wait(struct sock *sk, int state, int timeo) | |||
361 | 361 | ||
362 | void tcp_twsk_destructor(struct sock *sk) | 362 | void tcp_twsk_destructor(struct sock *sk) |
363 | { | 363 | { |
364 | struct tcp_timewait_sock *twsk = tcp_twsk(sk); | ||
365 | #ifdef CONFIG_TCP_MD5SIG | 364 | #ifdef CONFIG_TCP_MD5SIG |
365 | struct tcp_timewait_sock *twsk = tcp_twsk(sk); | ||
366 | if (twsk->tw_md5_keylen) | 366 | if (twsk->tw_md5_keylen) |
367 | tcp_put_md5sig_pool(); | 367 | tcp_put_md5sig_pool(); |
368 | #endif | 368 | #endif |