Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8192e: rtllib_crypt_tkip: 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>

authored by

Bhaktipriya Shridhar and committed by
Greg Kroah-Hartman
76134b3f 37241977

+1 -2
+1 -2
drivers/staging/rtl8192e/rtllib_crypt_tkip.c
··· 369 369 370 370 if (!tcb_desc->bHwSec) 371 371 return ret; 372 - else 373 - return 0; 372 + return 0; 374 373 375 374 376 375 }