* [KJ][PATCH] removal of useless call to 'keepalive_time_when'
@ 2005-04-28 8:06 Paolo Abeni
2005-04-28 22:25 ` Kristen Accardi
0 siblings, 1 reply; 2+ messages in thread
From: Paolo Abeni @ 2005-04-28 8:06 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 504 bytes --]
I have found a call to keepalive_time_when in net/ipv4/tcp_timer.c that
looks like useless. The returned value is overwritten few lines of code
below, without beeing used.
cheers,
Paolo
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Scopri il benessere che solo l���aloe vera regala al tuo corpo: cura la tua pelle
* Con la vasta gamma di prodotti che ti offre Erboristeria.com
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2380&d=28-4
[-- Attachment #2: removed_unused_keepalive_time.patch --]
[-- Type: text/x-patch, Size: 443 bytes --]
--- linux-2.6.12-rc3/net/ipv4/tcp_timer.c.orig 2005-04-28 09:50:15.352625672 +0200
+++ linux-2.6.12-rc3/net/ipv4/tcp_timer.c 2005-04-28 09:52:01.481491632 +0200
@@ -606,8 +606,6 @@ static void tcp_keepalive_timer (unsigne
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 || sk->sk_send_head)
goto resched;
[-- Attachment #3: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [KJ][PATCH] removal of useless call to 'keepalive_time_when'
2005-04-28 8:06 [KJ][PATCH] removal of useless call to 'keepalive_time_when' Paolo Abeni
@ 2005-04-28 22:25 ` Kristen Accardi
0 siblings, 0 replies; 2+ messages in thread
From: Kristen Accardi @ 2005-04-28 22:25 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 903 bytes --]
On Thu, 2005-04-28 at 10:06 +0200, Paolo Abeni wrote:
> I have found a call to keepalive_time_when in net/ipv4/tcp_timer.c that
> looks like useless. The returned value is overwritten few lines of code
> below, without beeing used.
Actually, if you look, the value that was returned to "elapsed" is
actually used if you take the goto to resched. So, it's not useless.
kristen
>
> cheers,
>
> Paolo
>
>
>
>
>
> --
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
> Sponsor:
> Scopri il benessere che solo laloe vera regala al tuo corpo: cura la tua pelle
> * Con la vasta gamma di prodotti che ti offre Erboristeria.com
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2380&d=28-4
> _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org http://lists.osdl.org/mailman/listinfo/kernel-janitors
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-28 22:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-28 8:06 [KJ][PATCH] removal of useless call to 'keepalive_time_when' Paolo Abeni
2005-04-28 22:25 ` Kristen Accardi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.