mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gimcuan Hui <gimcuan@gmail.com>
To: "Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jslaby@suse.com>
Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 5/5] tty: serial: jsm: add space before the open parenthesis '('
Date: Sun,  5 Nov 2017 05:06:22 +0000	[thread overview]
Message-ID: <4a6d5be09c39a4f0f6ee1ee5b3216129f110957e.1509853735.git.gimcuan@gmail.com> (raw)
In-Reply-To: <cover.1509853735.git.gimcuan@gmail.com>
In-Reply-To: <cover.1509853735.git.gimcuan@gmail.com>

This patch fixes the checkpatch.pl complains:

space required before the open parenthesis '('.

Signed-off-by: Gimcuan Hui <gimcuan@gmail.com>
---
 drivers/tty/serial/jsm/jsm_tty.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c
index 3853bfa5aa46..cbbadafe61fb 100644
--- a/drivers/tty/serial/jsm/jsm_tty.c
+++ b/drivers/tty/serial/jsm/jsm_tty.c
@@ -541,7 +541,7 @@ void jsm_input(struct jsm_channel *ch)
 	tp = port->tty;
 
 	bd = ch->ch_bd;
-	if(!bd)
+	if (!bd)
 		return;
 
 	spin_lock_irqsave(&ch->ch_lock, lock_flags);
@@ -781,7 +781,7 @@ void jsm_check_queue_flow_control(struct jsm_channel *ch)
 	if (qleft < 256) {
 		/* HWFLOW */
 		if (ch->ch_c_cflag & CRTSCTS) {
-			if(!(ch->ch_flags & CH_RECEIVER_OFF)) {
+			if (!(ch->ch_flags & CH_RECEIVER_OFF)) {
 				bd_ops->disable_receiver(ch);
 				ch->ch_flags |= (CH_RECEIVER_OFF);
 				jsm_dbg(READ, &ch->ch_bd->pci_dev,
-- 
2.11.0

  parent reply	other threads:[~2017-11-05  5:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-05  5:06 [PATCH 0/5] TTY/JSM coding style fixes Gimcuan Hui
2017-11-05  5:06 ` [PATCH 1/5] tty: serial: jsm: change the type of local variable Gimcuan Hui
2017-11-05  5:06 ` [PATCH 2/5] tty: serial: jsm: add blank line after declarations Gimcuan Hui
2017-11-05  5:06 ` [PATCH 3/5] tty: serial: jsm: delete space between function name and '(' Gimcuan Hui
2017-11-05  5:06 ` [PATCH 4/5] tty: serial: jsm: fix coding style Gimcuan Hui
2017-11-05  5:06 ` Gimcuan Hui [this message]
2017-11-06 13:16 ` [PATCH 0/5] TTY/JSM coding style fixes Guilherme G. Piccoli

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=4a6d5be09c39a4f0f6ee1ee5b3216129f110957e.1509853735.git.gimcuan@gmail.com \
    --to=gimcuan@gmail.com \
    --cc=gpiccoli@linux.vnet.ibm.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.com \
    --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®