drivers/net/ppp_async.c : Use of the time_after_eq()
Subsystems (2)
PATCH 1/1 drivers/net/ppp_async.c : Use of the time_after_eq()
Use of the time_after_eq() macro, defined at linux/jiffies.h, which deal with wrapping correctly and are nicer to read.
Signed-off-by Marcelo Feitoza Parisi <[email protected]>
drivers/net/ppp_async.c +2 -1
@@ -30,6 +30,7 @@#include <linux/ppp_channel.h> #include <linux/spinlock.h> #include <linux/init.h> +#include <linux/jiffies.h> #include <asm/uaccess.h> #define PPP_VERSION "2.4.2"
@@ -576,7 +577,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 ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors