tcp: Remove debug macro of TCP_CHECK_TIMER
Now, TCP_CHECK_TIMER is not used for debuging, it does nothing. And, it has been there for several years, maybe 6 years. Remove it to keep code clearer. Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
81146ec1b8
commit
089c34827e
@@ -873,9 +873,7 @@ int tcp_sendpage(struct sock *sk, struct page *page, int offset,
|
||||
flags);
|
||||
|
||||
lock_sock(sk);
|
||||
TCP_CHECK_TIMER(sk);
|
||||
res = do_tcp_sendpages(sk, &page, offset, size, flags);
|
||||
TCP_CHECK_TIMER(sk);
|
||||
release_sock(sk);
|
||||
return res;
|
||||
}
|
||||
@@ -916,7 +914,6 @@ int tcp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
|
||||
long timeo;
|
||||
|
||||
lock_sock(sk);
|
||||
TCP_CHECK_TIMER(sk);
|
||||
|
||||
flags = msg->msg_flags;
|
||||
timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT);
|
||||
@@ -1104,7 +1101,6 @@ wait_for_memory:
|
||||
out:
|
||||
if (copied)
|
||||
tcp_push(sk, flags, mss_now, tp->nonagle);
|
||||
TCP_CHECK_TIMER(sk);
|
||||
release_sock(sk);
|
||||
return copied;
|
||||
|
||||
@@ -1123,7 +1119,6 @@ do_error:
|
||||
goto out;
|
||||
out_err:
|
||||
err = sk_stream_error(sk, flags, err);
|
||||
TCP_CHECK_TIMER(sk);
|
||||
release_sock(sk);
|
||||
return err;
|
||||
}
|
||||
@@ -1415,8 +1410,6 @@ int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
|
||||
|
||||
lock_sock(sk);
|
||||
|
||||
TCP_CHECK_TIMER(sk);
|
||||
|
||||
err = -ENOTCONN;
|
||||
if (sk->sk_state == TCP_LISTEN)
|
||||
goto out;
|
||||
@@ -1767,12 +1760,10 @@ skip_copy:
|
||||
/* Clean up data we have read: This will do ACK frames. */
|
||||
tcp_cleanup_rbuf(sk, copied);
|
||||
|
||||
TCP_CHECK_TIMER(sk);
|
||||
release_sock(sk);
|
||||
return copied;
|
||||
|
||||
out:
|
||||
TCP_CHECK_TIMER(sk);
|
||||
release_sock(sk);
|
||||
return err;
|
||||
|
||||
|
Reference in New Issue
Block a user