Commit 7bf742b0 authored by Yuesong Li's avatar Yuesong Li Committed by Greg Kroah-Hartman
Browse files

usb: storage: reltek_cr: convert to use secs_to_jiffies



Since commit b35108a5 ("jiffies: Define secs_to_jiffies()") has
been introduced, we can use it to avoid scaling the time to msec

Signed-off-by: default avatarYuesong Li <liyuesong@vivo.com>
Link: https://lore.kernel.org/r/20250616062506.1074376-1-liyuesong@vivo.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c6445598
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -748,7 +748,7 @@ static void rts51x_modi_suspend_timer(struct rts51x_chip *chip)

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

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