diff options
-rw-r--r-- | net/rfkill/input.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/rfkill/input.c b/net/rfkill/input.c index c9d931e7ffec..b85107b5ef62 100644 --- a/net/rfkill/input.c +++ b/net/rfkill/input.c | |||
@@ -148,11 +148,9 @@ static unsigned long rfkill_ratelimit(const unsigned long last) | |||
148 | 148 | ||
149 | static void rfkill_schedule_ratelimited(void) | 149 | static void rfkill_schedule_ratelimited(void) |
150 | { | 150 | { |
151 | if (delayed_work_pending(&rfkill_op_work)) | 151 | if (schedule_delayed_work(&rfkill_op_work, |
152 | return; | 152 | rfkill_ratelimit(rfkill_last_scheduled))) |
153 | schedule_delayed_work(&rfkill_op_work, | 153 | rfkill_last_scheduled = jiffies; |
154 | rfkill_ratelimit(rfkill_last_scheduled)); | ||
155 | rfkill_last_scheduled = jiffies; | ||
156 | } | 154 | } |
157 | 155 | ||
158 | static void rfkill_schedule_global_op(enum rfkill_sched_op op) | 156 | static void rfkill_schedule_global_op(enum rfkill_sched_op op) |