drivers/net/oaknet.c : Use of the time_after() macro
Subsystems (2)
PATCH 1/1 drivers/net/oaknet.c : Use of the time_after() macro
Use of the 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]>
drivers/net/oaknet.c +2 -1
@@ -20,6 +20,7 @@#include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/init.h> +#include <linux/jiffies.h> #include <asm/board.h> #include <asm/io.h>
@@ -606,7 +607,7 @@#endif while ((ei_ibp (base +EN0_ISR ) &ENISR_RDC ) ==0 ) { -if (jiffies - start >OAKNET_WAIT ) { +if (time_after (jiffies, start +OAKNET_WAIT )) {printk ("%s: timeout waiting for Tx RDC.\n" , dev->name);oaknet_reset_8390 (dev);NS8390_init (dev, TRUE);
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors