login
Header Space

 
 

[PATCH] make use of before macro in tcp_input.c (fwd)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David S. Miller <davem@...>
Cc: <netdev@...>, Arnd Hannemann <hannemann@...>, <trivial@...>
Date: Monday, April 21, 2008 - 4:14 pm

David; I was about to put this in the trivial tree, but I think it should 
probably be merged via the net tree instead.

The change looks sane to me.


/Jesper Juhl


---------- Forwarded message ----------
Date: Mon, 03 Mar 2008 22:38:26 +0100
From: Arnd Hannemann <hannemann@nets.rwth-aachen.de>
To: trivial@kernel.org
Subject: [PATCH] make use of before macro in tcp_input.c

Make use of tcp before macro.

Signed-off-by: Arnd Hannemann <hannemann@nets.rwth-aachen.de>

diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 19c449f..e08d616 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -2265,7 +2265,7 @@ static inline int tcp_packet_delayed(struct tcp_sock *tp)
 {
    return !tp->retrans_stamp ||
        (tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr &&
-        (__s32)(tp->rx_opt.rcv_tsecr - tp->retrans_stamp) < 0);
+        before(tp->rx_opt.rcv_tsecr, tp->retrans_stamp));
 }

 /* Undo procedures. */
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] make use of before macro in tcp_input.c (fwd), Jesper Juhl, (Mon Apr 21, 4:14 pm)
speck-geostationary