cw1200: Less function calls in cw1200_load_firmware_cw1200() after error detection
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 4 Feb 2015 16:28:41 +0000 (17:28 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 6 Feb 2015 06:48:04 +0000 (08:48 +0200)
commitee4ddad82356116351660b0adfcb8e837eda371f
treec3a5959a1677ec0824af9bd3e1d06922097c6fb5
parentdf970d39b90e0c316c62a9db6d796edef2a31526
cw1200: Less function calls in cw1200_load_firmware_cw1200() after error detection

The functions kfree() and release_firmware() were called in a few cases
by the cw1200_load_firmware_cw1200() function during error handling even if
the passed variables contained still a null pointer.

Corresponding implementation details could be improved by adjustments for
jump targets.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/cw1200/fwio.c