mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 06:04:48 -04:00
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 <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e59b76cfca
commit
61a95c8d71
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user