diff options
author | Joseph Salisbury <salisbury.joseph@googlemail.com> | 2011-06-05 16:28:12 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-28 21:31:16 (GMT) |
commit | 23567c75286f63f77e5ec6bab7f46e0161d75356 (patch) | |
tree | dce18940e74323730e7a8b14cf92b56dd87f87ce /drivers/staging/wlan-ng | |
parent | 7a2eaf9358250706672783eb8511835706b0922b (diff) | |
download | linux-23567c75286f63f77e5ec6bab7f46e0161d75356.tar.xz |
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 <salisbury.joseph@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng')
-rw-r--r-- | drivers/staging/wlan-ng/prism2fw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c index 729d03d..3c40096 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)); |