drivers/scsi/osst.c : User of time_after_eq macro
Subsystems (2)
PATCH 1/1 drivers/scsi/osst.c : User of time_after_eq macro
Use of 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/scsi/osst.c +3 -2
@@ -50,6 +50,7 @@#include <linux/moduleparam.h> #include <linux/devfs_fs_kernel.h> #include <linux/delay.h> +#include <linux/jiffies.h> #include <asm/uaccess.h> #include <asm/dma.h> #include <asm/system.h>
@@ -803,7 +804,7 @@ ) && result >= 0) {#if DEBUG -if (debugging || jiffies - startwait >=2 *HZ /OSST_POLL_PER_SEC ) +if (debugging ||time_after_eq (jiffies, startwait +2 *HZ /OSST_POLL_PER_SEC )) printk (OSST_DEB_MSG "%s:D: Succ wait f fr %i (>%i): %i-%i %i (%i): %3li.%li s\n", name, curr, curr+minlast, STp->first_frame_position,
@@ -814,7 +815,7 @@return 0 ; }#if DEBUG -if (jiffies - startwait >=2 *HZ /OSST_POLL_PER_SEC && notyetprinted) +if (time_after_eq (jiffies, startwait +2 *HZ /OSST_POLL_PER_SEC ) && notyetprinted) { printk (OSST_DEB_MSG "%s:D: Wait for frame %i (>%i): %i-%i %i (%i)\n", name, curr, curr+minlast, STp->first_frame_position,
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors