lkml.org 
[lkml]   [2001]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] ppp_async.c jiffies cleanup
Dear Paul, Linus, Alan,

one more jiffies cleanup to use the comparison macros along the lines
Andreas Dilger already pointed out on lkml. I intend to post several
patches like this one in the future as time permits.

Tim


--- ../linux-2.4.14-pre6/drivers/net/ppp_async.c Sun Sep 30 21:26:07 2001
+++ drivers/net/ppp_async.c Tue Nov 6 20:27:28 2001
@@ -497,7 +497,7 @@
* character if necessary.
*/
if (islcp || flag_time == 0
- || jiffies - ap->last_xmit >= flag_time)
+ || time_after_eq(jiffies, ap->last_xmit + flag_time))
*buf++ = PPP_FLAG;
ap->last_xmit = jiffies;
fcs = PPP_INITFCS;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.024 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site