Skip to contentSkip to conversation

staging: wlan-ng: fix long line

PATCH In review Douglas Barbonaglia Sathler Figueiredo 2 participants 2 messages May 19, 2015 – May 31, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wlan-ng: fix long line

Style (line over 80 chars) in drivers/staging/wlan-ng/prism2fw.c

---
 drivers/staging/wlan-ng/prism2fw.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/prism2fw.c +6 -2
index 9408644..f4525f8 100644
@@ -708,7 +708,10 @@ static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
 			continue;
 		}
 
-		/* Validate plug address against chunk data and identify chunk */
+		/*
+		 * Validate plug address against
+		 * chunk data and identify chunk
+		 */
 		for (c = 0; c < nfchunks; c++) {
 			cstart = fchunk[c].addr;
 			cend = fchunk[c].addr + fchunk[c].len;
@@ -923,7 +926,8 @@ static int read_fwfile(const struct ihex_binrec *record)
 				      rcnt,
 				      s3info[ns3info].len,
 				      s3info[ns3info].type);
-			if (((s3info[ns3info].len - 1) * sizeof(u16)) > sizeof(s3info[ns3info].info)) {
+			if (((s3info[ns3info].len - 1) * sizeof(u16)) >
+				sizeof(s3info[ns3info].info)) {
 				pr_err("S3 inforec length too long - aborting\n");
 				return 1;
 			}
Signature · 1 line
1.9.3
#1 lore raw
Quoted 24 lines · Douglas Barbonaglia Sathler Figueiredo

Style (line over 80 chars) in drivers/staging/wlan-ng/prism2fw.c

---
 drivers/staging/wlan-ng/prism2fw.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/prism2fw.c +4 -1
index 9408644..f4525f8 100644
@@ -708,7 +708,10 @@ static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks,
 			continue;
 		}
 
-		/* Validate plug address against chunk data and identify chunk */
+		/*
+		 * Validate plug address against
+		 * chunk data and identify chunk
+		 */
 		for (c = 0; c < nfchunks; c++) {
 			cstart = fchunk[c].addr;
 			cend = fchunk[c].addr + fchunk[c].len;

drivers/staging/wlan-ng/prism2fw.c static int read_fwfile(const struct ihex_binrec *record) · line 930

Quoted 6 lines
drivers/staging/wlan-ng/prism2fw.c +2 -1
@@ -923,7 +926,8 @@ static int read_fwfile(const struct ihex_binrec *record)
 				      rcnt,
 				      s3info[ns3info].len,
 				      s3info[ns3info].type);
-			if (((s3info[ns3info].len - 1) * sizeof(u16)) > sizeof(s3info[ns3info].info)) {
+			if (((s3info[ns3info].len - 1) * sizeof(u16)) >
+				sizeof(s3info[ns3info].info)) {

Align this under the ( so it doesn't look like it's the logic in the next block.

thanks,

greg k-h