drivers/net/tokenring/lanstreamer.c : Use of
PATCH 1/1 drivers/net/tokenring/lanstreamer.c : Use of
Use of time_after() macro, defined at linux/jiffies.h, which deal with wrapping correctly and are nicer to read.
Signed-off-by Marcelo Feitoza Parisi <[email protected]>
--- linux/drivers/net/tokenring/lanstreamer.c 2005-07-07
19:13:16.000000000 -0300
+++ linux-kj/drivers/net/tokenring/lanstreamer.c 2005-07-07
23:02:53.839970136 -0300
@@ -123,6 +123,7 @@
#include <linux/version.h>
#include <linux/bitops.h>
#include <linux/wait.h>
+#include <linux/jiffies.h>
#include <net/checksum.h>
@@ -513,7 +514,7 @@
while (!((readw(streamer_mmio + SISR)) & SISR_SRB_REPLY)) {
msleep_interruptible(100);
- if (jiffies - t > 40 * HZ) {
+ if (time_after(jiffies, t + 40 * HZ)) {
printk(KERN_ERR
"IBM PCI tokenring card not responding\n");
release_region(dev->base_addr, STREAMER_IO_SPACE);_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors