drivers/scsi/qlogicpti.c : Use of time_after macro
Subsystems (2)
PATCH 1/1 drivers/scsi/qlogicpti.c : Use of time_after macro
Use of the time_after() macro, defined at linux/jiffies.h, which deal with wrapping correctly and are nicer to read.
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/scsi/qlogicpti.c +3 -1
@@ -24,6 +24,7 @@#include <linux/spinlock.h> #include <linux/interrupt.h> #include <linux/module.h> +#include <linux/jiffies.h> #include <asm/byteorder.h>
@@ -1017,7 +1018,8 @@if (Cmnd->device->tagged_supported) {if (qpti->cmd_count[Cmnd->device->id] ==0 ) qpti->tag_ages[Cmnd->device->id] = jiffies; -if ((jiffies - qpti->tag_ages[Cmnd->device->id]) > (5 *HZ )) { +if (time_after (jiffies, + qpti->tag_ages[Cmnd->device->id] +5 *HZ )) { cmd->control_flags =CFLAG_ORDERED_TAG ; qpti->tag_ages[Cmnd->device->id] = jiffies; }else
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors