From: Nicholas Mc Guire Date: Sat, 31 Jan 2015 10:52:14 +0000 (+0100) Subject: staging: rtl8712: condition with no effect removed X-Git-Tag: firefly_0821_release~176^2~2320^2~35 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1ba2c5a8087b8760087ff29a30b0aa4ae9802bb2;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Greg Kroah-Hartman --- 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)