summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_debugfs.c
diff options
context:
space:
mode:
authorEaswar Hariharan <eahariha@linux.microsoft.com>2025-02-25 20:17:16 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2025-03-03 22:11:47 -0500
commita131f20804d6a817140c1b78fb2a23696a1e2098 (patch)
tree27f95eb367771bbca226a8ea438648cfbda46158 /drivers/scsi/scsi_debugfs.c
parent7a9c0476d4073e742f474e71feeef4f54add4bc9 (diff)
scsi: lpfc: Convert timeouts to secs_to_jiffies()
Commit b35108a51cf7 ("jiffies: Define secs_to_jiffies()") introduced secs_to_jiffies(). As the value here is a multiple of 1000, use secs_to_jiffies() instead of msecs_to_jiffies() to avoid the multiplication This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with the following Coccinelle rules: @depends on patch@ expression E; @@ -msecs_to_jiffies(E * 1000) +secs_to_jiffies(E) -msecs_to_jiffies(E * MSEC_PER_SEC) +secs_to_jiffies(E) While here, convert some timeouts that are denominated in seconds manually. [mkp: Fix compilation error] Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com> Link: https://lore.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-2-a43967e36c88@linux.microsoft.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_debugfs.c')
0 files changed, 0 insertions, 0 deletions