From: Clement Smith <rclemsmith@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
Clement Smith <rclemsmith@gmail.com>
Subject: [PATCH 8/8] tty: serial: jsm: Removed assignment in if statement
Date: Sun, 6 Dec 2020 13:09:32 +0530 [thread overview]
Message-ID: <818b6f6e0a0fb31dbde5ac778501ae287781ea5f.1607240285.git.rclemsmith@gmail.com> (raw)
In-Reply-To: <0d1fde4c82ce4b9f20f5d1ae2c6b34314f9d9942.1607240285.git.rclemsmith@gmail.com>
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 --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;
/*
--
2.27.0
next prev parent reply other threads:[~2020-12-06 7:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-06 7:39 [PATCH 1/8] tty: serial: jsm: Fixed file by added more spacing Clement Smith
2020-12-06 7:39 ` [PATCH 2/8] " Clement Smith
2020-12-06 7:39 ` [PATCH 3/8] " Clement Smith
2020-12-06 7:39 ` [PATCH 4/8] " Clement Smith
2020-12-06 7:39 ` [PATCH 5/8] " Clement Smith
2020-12-06 7:39 ` [PATCH 6/8] " Clement Smith
2020-12-06 7:39 ` [PATCH 7/8] " Clement Smith
2020-12-06 7:39 ` Clement Smith [this message]
2020-12-06 8:08 ` [PATCH 1/8] " Greg KH
2020-12-06 11:04 ` Joe Perches
[not found] <cover.1607177807.git.rclemsmith@gmail.com>
2020-12-05 14:20 ` [PATCH 8/8] tty: serial: jsm: Removed assignment in if statement Clement Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=818b6f6e0a0fb31dbde5ac778501ae287781ea5f.1607240285.git.rclemsmith@gmail.com \
--to=rclemsmith@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®