linux/drivers/staging/rtl8192e
Himangi Saraogi 49d74d7091 Staging: rtl8192e: adjust error handling
This patch removes a test in error handling code by adding a return
path.

The Coccinelle semantic match that found the problem is:

// <smpl>
@@
expression E,E1,E2;
@@

E = alloc_etherdev(...)
... when != E = E1
if (...) { ... free_netdev(E); ... return ...; }
... when != E = E2
(
  if (...)
   {
   ... when != free_netdev(E);
   return dev; }
|
* if (...)
   {
   ... when != free_netdev(E);
   return ...; }
|
register_netdev(E)
)

// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-26 19:59:06 -04:00
..
rtl8192e drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
dot11d.c Staging: rtl8192e: dot11d: Fixed printk coding style issues 2014-06-19 17:14:45 -07:00
dot11d.h
Kconfig
license
Makefile
rtl819x_BA.h
rtl819x_BAProc.c staging: rtl8192e: A word in printk is split into 2 lines 2014-04-25 16:02:00 -07:00
rtl819x_HT.h
rtl819x_HTProc.c
rtl819x_Qos.h
rtl819x_TS.h
rtl819x_TSProc.c staging: rtl8192e: Fix typo in rtl8192e 2014-04-25 16:02:00 -07:00
rtllib_crypt_ccmp.c
rtllib_crypt_tkip.c
rtllib_crypt_wep.c
rtllib_crypt.c
rtllib_crypt.h
rtllib_debug.h Staging rtl8192e: Correcting wrong usage of macro in r8192E_phy.c and removing corresponding warning in rtllib_debug.h 2014-01-09 10:32:18 -08:00
rtllib_endianfree.h
rtllib_module.c Staging: rtl8192e: adjust error handling 2014-06-26 19:59:06 -04:00
rtllib_rx.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
rtllib_softmac_wx.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
rtllib_softmac.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
rtllib_tx.c staging: r8192e_pci: fix htons error 2014-05-28 14:46:51 -07:00
rtllib_wx.c
rtllib.h
TODO