diff mbox series

[8/8] tty: serial: jsm: Removed assignment in if statement

Message ID e47a6d011ec8d660cad78448984097a4922eaf9c.1607177807.git.rclemsmith@gmail.com
State Superseded
Headers show
Series [1/8] tty: serial: jsm: Fixed file by added more spacing in line 610 | expand

Commit Message

Clement Smith Dec. 5, 2020, 2:20 p.m. UTC
Fixed a coding style issue

            Signed-off-by: Clement Smith <rclemsmith@gmail.com>
---
 drivers/tty/serial/jsm/jsm_tty.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c
index eab82fb6b384..bfd4b55e6c74 100644
--- a/drivers/tty/serial/jsm/jsm_tty.c
+++ b/drivers/tty/serial/jsm/jsm_tty.c
@@ -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;
 
 	/*