Staging: rtl8188eu: Remove redundant local variable
authorSomya Anand <somyaanand214@gmail.com>
Mon, 9 Mar 2015 13:48:24 +0000 (19:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Mar 2015 17:41:10 +0000 (18:41 +0100)
commit1ce7948fe18230ae096cdb78211715309de9889c
tree9500857e52e7cdd04cb0904c260e31c6b43737c1
parent5b4ac54fd5aaa93922010c596292e6802c8420f6
Staging: rtl8188eu: Remove redundant local variable

This patch removes a redundant variable "val" and adds
inline return statements. It also adds a default case
to the switch statement which returns 0 to keep the logic
intact.

It also removes a redundant variable "inx" and adds inline
return statements.

This issue is identified by the following coccinelle script.
@@
expression ret;
identifier f;
@@

-ret =
+return
     f(...);
-return ret;

Signed-off-by: Somya Anand <somyaanand214@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_wlan_util.c