Skip to content

Commit 6deba08

Browse files
committed
timer: Remove pointless return value of do_usleep_range()
The only user ignores it anyway and rightfully so. Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Preeti U Murthy <[email protected]> Cc: Viresh Kumar <[email protected]> Cc: Marcelo Tosatti <[email protected]> Cc: Frederic Weisbecker <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 19d9f42 commit 6deba08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/time/timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,14 +1692,14 @@ unsigned long msleep_interruptible(unsigned int msecs)
16921692

16931693
EXPORT_SYMBOL(msleep_interruptible);
16941694

1695-
static int __sched do_usleep_range(unsigned long min, unsigned long max)
1695+
static void __sched do_usleep_range(unsigned long min, unsigned long max)
16961696
{
16971697
ktime_t kmin;
16981698
unsigned long delta;
16991699

17001700
kmin = ktime_set(0, min * NSEC_PER_USEC);
17011701
delta = (max - min) * NSEC_PER_USEC;
1702-
return schedule_hrtimeout_range(&kmin, delta, HRTIMER_MODE_REL);
1702+
schedule_hrtimeout_range(&kmin, delta, HRTIMER_MODE_REL);
17031703
}
17041704

17051705
/**

0 commit comments

Comments
 (0)