netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH] tcp: remove useless assignment statement in tcp_keepalive_timer
@ 2011-08-22 10:03 Li Yu
  2011-08-22 10:46 ` Christoph Paasch
  0 siblings, 1 reply; 3+ messages in thread
From: Li Yu @ 2011-08-22 10:03 UTC (permalink / raw)
  To: netdev@vger.kernel.org


Remove useless assignment statement, it may be trash after refactoring?

Signed-off-by: Li Yu <raise.sail@gmail.com>
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index ecd44b0..321ff2f 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -552,8 +552,6 @@ static void tcp_keepalive_timer (unsigned long data)
 	if (!sock_flag(sk, SOCK_KEEPOPEN) || sk->sk_state == TCP_CLOSE)
 		goto out;
 
-	elapsed = keepalive_time_when(tp);
-
 	/* It is alive without keepalive 8) */
 	if (tp->packets_out || tcp_send_head(sk))
 		goto resched;


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-22 11:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-22 10:03 [net-next PATCH] tcp: remove useless assignment statement in tcp_keepalive_timer Li Yu
2011-08-22 10:46 ` Christoph Paasch
2011-08-22 11:01   ` Li Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).