summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorNicholas Mc Guire <der.herr@hofr.at>2015-01-31 10:52:14 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-07 09:24:59 (GMT)
commit1ba2c5a8087b8760087ff29a30b0aa4ae9802bb2 (patch)
treeabdfd16705fe871dfad9a3cd3e28cc8a04214ef5 /drivers/staging
parent7dfb6d2ec4547a6fd83571f6beeee47db9184847 (diff)
downloadlinux-1ba2c5a8087b8760087ff29a30b0aa4ae9802bb2.tar.xz
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 f933713..36348d9 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)