]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita00fb8a6065de797d2c91b16326a94394ea99323
treef01f45bceef770b364676b6ab6bee751a9f5e521
parent18a9100d94c4a277b93f101e46a7a835cbf7227e
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