Skip to contentSkip to conversation

staging: sm750fb: Add spaces around '+'

PATCH In review Laís Pessine do Carmo 2 participants 2 messages Nov 7, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: sm750fb: Add spaces around '+'

Add spaces around '+' to correct the following checkpath.pl warnings:

WARNING: line over 80 characters
+ write_dpPort(accel, *(unsigned int *)(pSrcbuf +
(j * 4)));

WARNING: line over 80 characters
+ memcpy(ajRemain, pSrcbuf+ul4BytesPerScan,
ulBytesRemain);

---

Hi, I am new to Linux community and I am sending this patch to learn about the kernel development.
Please, let me know if there is anything I can improve. Thank you!

---
 drivers/staging/sm750fb/sm750_accel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/sm750fb/sm750_accel.c +2 -1
index 1035e91e7cd3..eed840b251da 100644
@@ -383,7 +383,8 @@ int sm750_hw_imageblit(struct lynx_accel *accel,
 			write_dpPort(accel, *(unsigned int *)(pSrcbuf + (j * 4)));
 
 		if (ulBytesRemain) {
-			memcpy(ajRemain, pSrcbuf+ul4BytesPerScan, ulBytesRemain);
+			memcpy(ajRemain, pSrcbuf + ul4BytesPerScan,
+			       ulBytesRemain);
 			write_dpPort(accel, *(unsigned int *)ajRemain);
 		}
 
Signature · 1 line
2.11.0
maintainer
#1 lore raw
Quoted 9 lines · Laís Pessine do Carmo

Add spaces around '+' to correct the following checkpath.pl warnings:

WARNING: line over 80 characters
+ write_dpPort(accel, *(unsigned int *)(pSrcbuf +
(j * 4)));

WARNING: line over 80 characters
+ memcpy(ajRemain, pSrcbuf+ul4BytesPerScan,
ulBytesRemain);

No need to line-wrap these warning lines next time.

thanks,

greg k-h