From: Bhaktipriya Shridhar Date: Thu, 10 Mar 2016 16:54:07 +0000 (+0530) Subject: staging: rtl8188eu: os_dep: Remove unnecessary else after return X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=61a95c8d71fa048704c8edcb97fb623b4dd82cae;p=linux-beck.git staging: rtl8188eu: os_dep: Remove unnecessary else after return This patch fixes the checkpatch warning that else is not generally useful after a break or return. This was done using Coccinelle: @@ expression e2; statement s1; @@ if(e2) { ... return ...; } -else s1 Signed-off-by: Bhaktipriya Shridhar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/os_dep/osdep_service.c b/drivers/staging/rtl8188eu/os_dep/osdep_service.c index 5a90ef6381a1..f090bef59594 100644 --- a/drivers/staging/rtl8188eu/os_dep/osdep_service.c +++ b/drivers/staging/rtl8188eu/os_dep/osdep_service.c @@ -64,8 +64,7 @@ u32 _rtw_down_sema(struct semaphore *sema) { if (down_interruptible(sema)) return _FAIL; - else - return _SUCCESS; + return _SUCCESS; } void _rtw_init_queue(struct __queue *pqueue)