From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758367AbYCFKpp (ORCPT ); Thu, 6 Mar 2008 05:45:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757489AbYCFKpZ (ORCPT ); Thu, 6 Mar 2008 05:45:25 -0500 Received: from mta-1.ms.rz.RWTH-Aachen.DE ([134.130.7.72]:55833 "EHLO mta-1.ms.rz.rwth-aachen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763263AbYCFKpW (ORCPT ); Thu, 6 Mar 2008 05:45:22 -0500 Date: Thu, 06 Mar 2008 11:46:36 +0100 From: Arnd Hannemann Subject: Re: [PATCH-RESEND] Removing unneeded statement from tcp_ipv4.c In-reply-to: <20080305.190003.22581298.davem@davemloft.net> To: David Miller Cc: ilpo.jarvinen@helsinki.fi, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-id: <47CFCB8C.5070801@nets.rwth-aachen.de> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-IronPort-AV: E=Sophos;i="4.25,455,1199660400"; d="scan'208";a="54411522" References: <47CBFBDA.7000801@nets.rwth-aachen.de> <47CC872F.9020202@nets.rwth-aachen.de> <20080305.190003.22581298.davem@davemloft.net> User-Agent: Thunderbird 2.0.0.12 (X11/20080227) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Miller schrieb: > From: Arnd Hannemann > Date: Tue, 04 Mar 2008 00:18:07 +0100 > >> Avoid setting tstamp_ok because this is done two lines later anyway. >> >> Signed-off-by: Arnd Hannemann > > Patch does not apply, your email client has corrupted the > patch by turning tabs into spaces etc. > Sorry, this one should apply. Avoid setting tstamp_ok because this is done two lines later anyway. Signed-off-by: Arnd Hannemann diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 00156bf..ecef356 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1302,15 +1302,14 @@ int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb) tmp_opt.saw_tstamp = 0; } - if (tmp_opt.saw_tstamp && !tmp_opt.rcv_tsval) { - /* Some OSes (unknown ones, but I see them on web server, which - * contains information interesting only for windows' - * users) do not send their stamp in SYN. It is easy case. - * We simply do not advertise TS support. - */ + /* Some OSes (unknown ones, but I see them on web server, which + * contains information interesting only for windows' + * users) do not send their stamp in SYN. It is easy case. + * We simply do not advertise TS support. + */ + if (tmp_opt.saw_tstamp && !tmp_opt.rcv_tsval) tmp_opt.saw_tstamp = 0; - tmp_opt.tstamp_ok = 0; - } + tmp_opt.tstamp_ok = tmp_opt.saw_tstamp; tcp_openreq_init(req, &tmp_opt, skb);