ktime: Cleanup ktime_set() usage
ktime_set(S,N) was required for the timespec storage type and is still useful for situations where a Seconds and Nanoseconds part of a time value needs to be converted. For anything where the Seconds argument is 0, this is pointless and can be replaced with a simple assignment. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org>
This commit is contained in:
@@ -1694,7 +1694,7 @@ static void srp_snd_msg_failed(struct scsi_info *vscsi, long rc)
|
||||
if (!vscsi->rsp_q_timer.started) {
|
||||
if (vscsi->rsp_q_timer.timer_pops <
|
||||
MAX_TIMER_POPS) {
|
||||
kt = ktime_set(0, WAIT_NANO_SECONDS);
|
||||
kt = WAIT_NANO_SECONDS;
|
||||
} else {
|
||||
/*
|
||||
* slide the timeslice if the maximum
|
||||
|
||||
Reference in New Issue
Block a user