diff mbox series

staging: sm750fb: Add spaces around '+'

Message ID 20181107002804.25345-1-laispc19@gmail.com (mailing list archive)
State New, archived
Headers show
Series staging: sm750fb: Add spaces around '+' | expand

Commit Message

Laís Pc Nov. 7, 2018, 12:28 a.m. UTC
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);

Signed-off-by: Laís Pessine do Carmo <laispc19@gmail.com>

---

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(-)

Comments

Greg Kroah-Hartman Nov. 7, 2018, 11:33 a.m. UTC | #1
On Tue, Nov 06, 2018 at 10:28:04PM -0200, Laís Pessine do Carmo wrote:
> 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
diff mbox series

Patch

diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750fb/sm750_accel.c
index 1035e91e7cd3..eed840b251da 100644
--- a/drivers/staging/sm750fb/sm750_accel.c
+++ b/drivers/staging/sm750fb/sm750_accel.c
@@ -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);
 		}