diff options
Diffstat (limited to 'net/rds/tcp_send.c')
-rw-r--r-- | net/rds/tcp_send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/tcp_send.c b/net/rds/tcp_send.c index a28b895ff0d1..e5f6ccef79ef 100644 --- a/net/rds/tcp_send.c +++ b/net/rds/tcp_send.c | |||
@@ -226,7 +226,7 @@ void rds_tcp_write_space(struct sock *sk) | |||
226 | 226 | ||
227 | read_lock(&sk->sk_callback_lock); | 227 | read_lock(&sk->sk_callback_lock); |
228 | conn = sk->sk_user_data; | 228 | conn = sk->sk_user_data; |
229 | if (conn == NULL) { | 229 | if (!conn) { |
230 | write_space = sk->sk_write_space; | 230 | write_space = sk->sk_write_space; |
231 | goto out; | 231 | goto out; |
232 | } | 232 | } |