staging: rtl8712: condition with no effect removed
authorNicholas Mc Guire <der.herr@hofr.at>
Sat, 31 Jan 2015 10:52:14 +0000 (11:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:24:59 +0000 (17:24 +0800)
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>
drivers/staging/rtl8712/osdep_service.h

index f933713..36348d9 100644 (file)
@@ -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)