Skip to content

Commit 7bf742b

Browse files
Yuesong Ligregkh
authored andcommitted
usb: storage: reltek_cr: convert to use secs_to_jiffies
Since commit b35108a ("jiffies: Define secs_to_jiffies()") has been introduced, we can use it to avoid scaling the time to msec Signed-off-by: Yuesong Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c644559 commit 7bf742b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/storage/realtek_cr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ static void rts51x_modi_suspend_timer(struct rts51x_chip *chip)
748748

749749
usb_stor_dbg(us, "state:%d\n", rts51x_get_stat(chip));
750750

751-
chip->timer_expires = jiffies + msecs_to_jiffies(1000*ss_delay);
751+
chip->timer_expires = jiffies + secs_to_jiffies(ss_delay);
752752
mod_timer(&chip->rts51x_suspend_timer, chip->timer_expires);
753753
}
754754

0 commit comments

Comments
 (0)