staging: rtl8712: Fixed else not required after return
authorSarah Khan <sarahjmi07@gmail.com>
Fri, 3 Oct 2014 14:03:39 +0000 (19:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:11 +0000 (10:29 +0800)
WARNING: else is generally not required after return
checkpatch.pl warning in osdep_service.h

Signed-off-by: Sarah Khan <sarahjmi07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/osdep_service.h

index d7a357b..5153ad9 100644 (file)
@@ -88,17 +88,13 @@ static inline u32 _down_sema(struct semaphore *sema)
 {
        if (down_interruptible(sema))
                return _FAIL;
-       else
-               return _SUCCESS;
+       return _SUCCESS;
 }
 
 static inline u32 end_of_queue_search(struct list_head *head,
                struct list_head *plist)
 {
-       if (head == plist)
-               return true;
-       else
-               return false;
+       return (head == plist);
 }
 
 static inline void sleep_schedulable(int ms)