staging: brcm80211: minor cleanup in initvars_srom_pci()
authorArend van Spriel <arend@broadcom.com>
Wed, 29 Jun 2011 23:46:28 +0000 (16:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Jul 2011 16:57:09 +0000 (09:57 -0700)
commitfa0ace7fd3b9cfbe3b2d117af7eac4a132558a1b
treef01f45bceef770b364676b6ab6bee751a9f5e521
parentfb10e59111870a51f0eb7bcc046b6b7eb39dfa3e
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>
drivers/staging/brcm80211/brcmsmac/srom.c