From: Matt Kurz Date: Tue, 1 Jul 2014 19:59:54 +0000 (+1000) Subject: staging: wlan-ng/prism2fw.c: Add blank line after declarations X-Git-Tag: v3.17-rc1~123^2~1128 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1177ce46a1231d66ba67409bbfabf2b7b2f90de0;p=karo-tx-linux.git staging: wlan-ng/prism2fw.c: Add blank line after declarations Fix checkpatch.pl warnings due to missing blank line after declarations Signed-off-by: Matt Kurz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c index f7870355c69f..42c14b0b6833 100644 --- a/drivers/staging/wlan-ng/prism2fw.c +++ b/drivers/staging/wlan-ng/prism2fw.c @@ -445,6 +445,7 @@ static int crcimage(struct imgchunk *fchunk, unsigned int nfchunks, static void free_chunks(struct imgchunk *fchunk, unsigned int *nfchunks) { int i; + for (i = 0; i < *nfchunks; i++) kfree(fchunk[i].data); @@ -1060,6 +1061,7 @@ static int writeimage(wlandevice_t *wlandev, struct imgchunk *fchunk, for (j = 0; j < nwrites; j++) { /* TODO Move this to a separate function */ int lenleft = fchunk[i].len - (WRITESIZE_MAX * j); + if (fchunk[i].len > WRITESIZE_MAX) currlen = WRITESIZE_MAX; else