All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: sm750fb: Avoid multiple assignments
@ 2019-03-04 18:31 Nishka Dasgupta
  2019-03-04 20:54 ` [Outreachy kernel] " Julia Lawall
  2019-03-05  7:51 ` Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: Nishka Dasgupta @ 2019-03-04 18:31 UTC (permalink / raw)
  To: sudipm.mukherjee, teddy.wang, gregkh, outreachy-kernel; +Cc: Nishka Dasgupta

Avoid multiple assignments in the same line. Issue found with
Checkpatch.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
---
 drivers/staging/sm750fb/sm750.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index e9f10c2669ea..739841c3b5d6 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -782,7 +782,8 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index)
 		0x800f0 + (int)crtc->channel * 0x140;
 
 	pr_info("crtc->cursor.mmio = %p\n", crtc->cursor.mmio);
-	crtc->cursor.maxH = crtc->cursor.maxW = 64;
+	crtc->cursor.maxW = 64;
+	crtc->cursor.maxH = crtc->cursor.maxW;
 	crtc->cursor.size = crtc->cursor.maxH * crtc->cursor.maxW * 2 / 8;
 	crtc->cursor.vstart = sm750_dev->pvMem + crtc->cursor.offset;
 
-- 
2.19.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-03-05 17:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-04 18:31 [PATCH] staging: sm750fb: Avoid multiple assignments Nishka Dasgupta
2019-03-04 20:54 ` [Outreachy kernel] " Julia Lawall
2019-03-05  7:10   ` Nishka Dasgupta
2019-03-05  7:51 ` Greg KH
2019-03-05 17:12   ` Nishka Dasgupta
2019-03-05 17:17     ` Greg KH
2019-03-05 17:28       ` Nishka Dasgupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.