staging: rtl8188eu: core: Improve cleanup code
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Thu, 30 Oct 2014 15:41:57 +0000 (21:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 20:12:05 +0000 (13:12 -0700)
commit3cfab18ce55282a85e2c7e5db15c5daf065efdb4
tree748d792253111856a021f3af3d3e621706773fbe
parenta055b3cbb72d2487938d3452c79e2a338088fbc1
staging: rtl8188eu: core: Improve cleanup code

The code is restructured such that kfree(efuseTbl) is not called
if the allocation of efuseTbl and such that kfree(eFuseWord) is not
called if the allocation of eFuseWord has failed.

To accomplish this a new label eFuseWord_failed has been added.

Suggested by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_efuse.c