summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorNicholas Mc Guire <der.herr@hofr.at>2015-01-31 11:52:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-07 17:24:59 +0800
commit1ba2c5a8087b8760087ff29a30b0aa4ae9802bb2 (patch)
treeabdfd16705fe871dfad9a3cd3e28cc8a04214ef5 /drivers/staging
parent7dfb6d2ec4547a6fd83571f6beeee47db9184847 (diff)
staging: rtl8712: condition with no effect removed
The check for return of schedule_timeout() has no effect on the effective control flow of sleep_schedulable() so it can be dropped. Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8712/osdep_service.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h
index f9337135340b..36348d900d34 100644
--- a/drivers/staging/rtl8712/osdep_service.h
+++ b/drivers/staging/rtl8712/osdep_service.h
@@ -103,8 +103,7 @@ static inline void sleep_schedulable(int ms)
delta = msecs_to_jiffies(ms);/*(ms)*/
set_current_state(TASK_INTERRUPTIBLE);
- if (schedule_timeout(delta) != 0)
- return;
+ schedule_timeout(delta);
}
static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)