Subject: [net-next PATCH] tcp: remove useless assignment statement in tcp_keepalive_timer

From: Li Yu <[email-masked]>
Date: Mon, 22 Aug 2011 18:03:09 +0800

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

Signed-off-by: Li Yu <[email-masked]>
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;