commit | fa0ace7fd3b9cfbe3b2d117af7eac4a132558a1b | [log] [tgz] |
---|---|---|
author | Arend van Spriel <arend@broadcom.com> | Wed Jun 29 16:46:28 2011 -0700 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Tue Jul 05 09:57:09 2011 -0700 |
tree | f01f45bceef770b364676b6ab6bee751a9f5e521 | |
parent | fb10e59111870a51f0eb7bcc046b6b7eb39dfa3e [diff] |
staging: brcm80211: minor cleanup in initvars_srom_pci() The error handling code labelled with errout: did a conditional kfree(). The last error jump to the label is upon failure of the kmalloc() for which the conditional kfree() is done. Therefor, the kfree is moved before the error label and done unconditionally. Signed-off-by: Arend van Spriel <arend@broadcom.com> Reviewed-by: Roland Vossen <rvossen@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>