tty: serial: jsm: Fixed file by added more spacing in line 612
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/8 tty: serial: jsm: Fixed file by added more spacing in line 610
Fixed a coding style issue
--- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/jsm/jsm_tty.c +1 -1
@@ -607,7 +607,7 @@ void jsm_input(struct jsm_channel *ch)* Give the Linux ld the flags in the * format it likes. */ -if (*(ch->ch_equeue +tail +i) &UART_LSR_BI ) +if (*(ch->ch_equeue + tail + i) &UART_LSR_BI )tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_BREAK );else if (*(ch->ch_equeue +tail +i) &UART_LSR_PE )tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_PARITY );
Signature · 1 line
2.27.0
Greg KH
maintainerRe: [PATCH 1/8] tty: serial: jsm: Fixed file by added more spacing in line 610
Quoted 6 lines · Clement Smith
Fixed a coding style issue
Signed-off-by Clement Smith <[email protected]>--- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
The subject lines in this series is really funny.
Please don't do this. If you want to get practice in making coding style cleanups, do it in drivers/staging/ which is why the code is there. Don't "practice" in other parts of the kernel as it just gets in the way of other development and review efforts.
good luck!
greg k-h
PATCH 2/8 tty: serial: jsm: Fixed file by added more spacing in line 611
In reply to a message not in the archiveFixed a coding style issue
--- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/jsm/jsm_tty.c +1 -1
@@ -608,7 +608,7 @@ void jsm_input(struct jsm_channel *ch)* format it likes. */ if (*(ch->ch_equeue + tail + i) &UART_LSR_BI ) -tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_BREAK ); +tty_insert_flip_char (port, *(ch->ch_rqueue + tail + i),TTY_BREAK );else if (*(ch->ch_equeue +tail +i) &UART_LSR_PE )tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_PARITY );else if (*(ch->ch_equeue +tail +i) &UART_LSR_FE )
Signature · 1 line
2.27.0
PATCH 3/8 tty: serial: jsm: Fixed file by added more spacing in line 612
In reply to a message not in the archiveFixed a coding style issue
--- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/jsm/jsm_tty.c +1 -1
@@ -609,7 +609,7 @@ void jsm_input(struct jsm_channel *ch)*/ if (*(ch->ch_equeue + tail + i) &UART_LSR_BI )tty_insert_flip_char (port, *(ch->ch_rqueue + tail + i),TTY_BREAK ); -else if (*(ch->ch_equeue +tail +i) &UART_LSR_PE ) +else if (*(ch->ch_equeue + tail + i) &UART_LSR_PE )tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_PARITY );else if (*(ch->ch_equeue +tail +i) &UART_LSR_FE )tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_FRAME );
Signature · 1 line
2.27.0
PATCH 4/8 tty: serial: jsm: Fixed file by added more spacing in line 613
In reply to a message not in the archiveFixed a coding style issue
--- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/jsm/jsm_tty.c +1 -1
@@ -610,7 +610,7 @@ void jsm_input(struct jsm_channel *ch)if (*(ch->ch_equeue + tail + i) &UART_LSR_BI )tty_insert_flip_char (port, *(ch->ch_rqueue + tail + i),TTY_BREAK );else if (*(ch->ch_equeue + tail + i) &UART_LSR_PE ) -tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_PARITY ); +tty_insert_flip_char (port, *(ch->ch_rqueue + tail + i),TTY_PARITY );else if (*(ch->ch_equeue +tail +i) &UART_LSR_FE )tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_FRAME );else
Signature · 1 line
2.27.0
PATCH 5/8 tty: serial: jsm: Fixed file by added more spacing in line 614
In reply to a message not in the archiveFixed a coding style issue
--- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/jsm/jsm_tty.c +1 -1
@@ -611,7 +611,7 @@ void jsm_input(struct jsm_channel *ch)tty_insert_flip_char (port, *(ch->ch_rqueue + tail + i),TTY_BREAK ); else if (*(ch->ch_equeue + tail + i) & UART_LSR_PE) tty_insert_flip_char(port, *(ch->ch_rqueue + tail + i), TTY_PARITY); - else if (*(ch->ch_equeue +tail +i) & UART_LSR_FE) + else if (*(ch->ch_equeue + tail + i) & UART_LSR_FE) tty_insert_flip_char(port, *(ch->ch_rqueue +tail +i), TTY_FRAME); else tty_insert_flip_char(port, *(ch->ch_rqueue +tail +i), TTY_NORMAL);
Signature · 1 line
2.27.0
PATCH 6/8 tty: serial: jsm: Fixed file by added more spacing in line 615
In reply to a message not in the archiveFixed a coding style issue
--- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/jsm/jsm_tty.c +1 -1
@@ -612,7 +612,7 @@ void jsm_input(struct jsm_channel *ch)else if (*(ch->ch_equeue + tail + i) &UART_LSR_PE )tty_insert_flip_char (port, *(ch->ch_rqueue + tail + i),TTY_PARITY );else if (*(ch->ch_equeue + tail + i) &UART_LSR_FE ) -tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_FRAME ); +tty_insert_flip_char (port, *(ch->ch_rqueue + tail + i),TTY_FRAME );else tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_NORMAL ); }
Signature · 1 line
2.27.0
PATCH 7/8 tty: serial: jsm: Fixed file by added more spacing in line 616
In reply to a message not in the archiveFixed a coding style issue
--- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/jsm/jsm_tty.c +1 -1
@@ -614,7 +614,7 @@ void jsm_input(struct jsm_channel *ch)else if (*(ch->ch_equeue + tail + i) &UART_LSR_FE )tty_insert_flip_char (port, *(ch->ch_rqueue + tail + i),TTY_FRAME );else -tty_insert_flip_char (port, *(ch->ch_rqueue +tail +i),TTY_NORMAL ); +tty_insert_flip_char (port, *(ch->ch_rqueue + tail + i),TTY_NORMAL ); } }else {tty_insert_flip_string (port, ch->ch_rqueue + tail, s);
Signature · 1 line
2.27.0
PATCH 8/8 tty: serial: jsm: Removed assignment in if statement
In reply to a message not in the archiveFixed a coding style issue
--- drivers/tty/serial/jsm/jsm_tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/tty/serial/jsm/jsm_tty.c +2 -1
@@ -742,7 +742,8 @@ void jsm_check_queue_flow_control(struct jsm_channel *ch)int qleft;/* Store how much space we have left in the queue */ -if ((qleft = ch->ch_r_tail - ch->ch_r_head -1 ) <0 ) + qleft = ch->ch_r_tail - ch->ch_r_head -1 ; +if (qleft <0 ) qleft +=RQUEUEMASK +1 ;/*
Signature · 1 line
2.27.0