From: Joseph Salisbury Date: Sun, 5 Jun 2011 16:28:12 +0000 (+0100) Subject: Staging: wlan-ng: fix brace coding style issue in prism2fw.c X-Git-Tag: MMI-PSA29.97-13-9~18845^2~505 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=23567c75286f63f77e5ec6bab7f46e0161d75356;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: wlan-ng: fix brace coding style issue in prism2fw.c This is a patch to the prism2fw.c file that fixes up a brace warning found by the checkpatch.pl tool. Signed-off-by: Joseph Salisbury Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c index 729d03d28d75..3c40096f0c05 100644 --- a/drivers/staging/wlan-ng/prism2fw.c +++ b/drivers/staging/wlan-ng/prism2fw.c @@ -442,9 +442,9 @@ int crcimage(struct imgchunk *fchunk, unsigned int nfchunks, void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks) { int i; - for (i = 0; i < *nfchunks; i++) { + for (i = 0; i < *nfchunks; i++) kfree(fchunk[i].data); - } + *nfchunks = 0; memset(fchunk, 0, sizeof(*fchunk));