All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]Staging:tty:amiserial:Add space before open parenthesis and fix indent warning.
@ 2016-02-19 12:07 Sandhya
  2016-02-19 21:24 ` [Outreachy kernel] " Greg KH
  2016-02-20  3:49 ` Julia Lawall
  0 siblings, 2 replies; 3+ messages in thread
From: Sandhya @ 2016-02-19 12:07 UTC (permalink / raw)
  To: outreachy-kernel

Add space before open parenthesis of "if" statement and fix indent warning.
The checkpatch.pl script reported  error and warning.

diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c
index 2caaf5a..9a5c584 100644
--- a/drivers/tty/amiserial.c
+++ b/drivers/tty/amiserial.c
@@ -262,10 +262,10 @@ static void receive_chars(struct serial_state *info)
 	custom.intreq = IF_RBF;
 	mb();
 
-	if((serdatr & 0x1ff) == 0)
-	    status |= UART_LSR_BI;
-	if(serdatr & SDR_OVRUN)
-	    status |= UART_LSR_OE;
+	if ((serdatr & 0x1ff) == 0)
+		status |= UART_LSR_BI;
+	if (serdatr & SDR_OVRUN)
+		status |= UART_LSR_OE;
 
 	ch = serdatr & 0xff;
 	icount->rx++;


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

end of thread, other threads:[~2016-02-20  3:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-19 12:07 [PATCH]Staging:tty:amiserial:Add space before open parenthesis and fix indent warning Sandhya
2016-02-19 21:24 ` [Outreachy kernel] " Greg KH
2016-02-20  3:49 ` Julia Lawall

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.