2001-11-06 19:33:18

by Tim Schmielau

[permalink] [raw]
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;