Skip to contentSkip to conversation

staging: fwserial: match alignment with open parenthesis

PATCH Superseded Nikolay Kyx 3 participants 5 messages Feb 18, 2021 – Feb 19, 2021 Staging

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: fwserial: match alignment with open parenthesis

fwserial.c:

fix CHECK: Alignment should match open parenthesis

---
 drivers/staging/fwserial/fwserial.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/fwserial/fwserial.c +2 -2
index c368082aae1a..137e97c9406c 100644
@@ -1318,8 +1318,8 @@ static int fwtty_break_ctl(struct tty_struct *tty, int state)
 	if (state == -1) {
 		set_bit(STOP_TX, &port->flags);
 		ret = wait_event_interruptible_timeout(port->wait_tx,
-					       !test_bit(IN_TX, &port->flags),
-					       10);
+						       !test_bit(IN_TX, &port->flags),
+						       10);
 		if (ret == 0 || ret == -ERESTARTSYS) {
 			clear_bit(STOP_TX, &port->flags);
 			fwtty_restart_tx(port);
Signature · 1 line
2.30.1
maintainer
#1 lore raw
Quoted 1 line · Nikolay Kyx

fwserial.c:

Why is this here?

Quoted 1 line

fix CHECK: Alignment should match open parenthesis

What does this mean?

Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change.

thanks,

greg k-h

#2 lore raw

PATCH v2 1/1 staging: fwserial: match alignment with open parenthesis

This patch fixes the following checkpatch.pl check:

CHECK: Alignment should match open parenthesis

in file fwserial.c

Additionally some style warnings remain valid here and could be fixed by another patch.

---

v2: Edited changelog, as suggested by Greg KH <[email protected]>

 drivers/staging/fwserial/fwserial.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/fwserial/fwserial.c +2 -2
index c368082aae1a..137e97c9406c 100644
@@ -1318,8 +1318,8 @@ static int fwtty_break_ctl(struct tty_struct *tty, int state)
 	if (state == -1) {
 		set_bit(STOP_TX, &port->flags);
 		ret = wait_event_interruptible_timeout(port->wait_tx,
-					       !test_bit(IN_TX, &port->flags),
-					       10);
+						       !test_bit(IN_TX, &port->flags),
+						       10);
 		if (ret == 0 || ret == -ERESTARTSYS) {
 			clear_bit(STOP_TX, &port->flags);
 			fwtty_restart_tx(port);
Signature · 1 line
2.30.1
#3 lore raw
Quoted 9 lines · Nikolay Kyx

This patch fixes the following checkpatch.pl check:

CHECK: Alignment should match open parenthesis

in file fwserial.c

Additionally some style warnings remain valid here and could be fixed by another patch.

Don't put comments like this in the git log, put them under the --- cut off line.

Quoted 3 lines

---

#4 lore raw

PATCH v3 1/1 staging: fwserial: match alignment with open parenthesis

This patch fixes the following checkpatch.pl check:

CHECK: Alignment should match open parenthesis

in file fwserial.c

---

Additionally some style warnings remain valid here and could be fixed by another patch.

v2: Edited changelog, as suggested by Greg KH <[email protected]>

v3: Moved comment about remaining warnings under the cut-off line, as suggested by Dan Carpenter <[email protected]>

 drivers/staging/fwserial/fwserial.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/fwserial/fwserial.c +2 -2
index c368082aae1a..137e97c9406c 100644
@@ -1318,8 +1318,8 @@ static int fwtty_break_ctl(struct tty_struct *tty, int state)
 	if (state == -1) {
 		set_bit(STOP_TX, &port->flags);
 		ret = wait_event_interruptible_timeout(port->wait_tx,
-					       !test_bit(IN_TX, &port->flags),
-					       10);
+						       !test_bit(IN_TX, &port->flags),
+						       10);
 		if (ret == 0 || ret == -ERESTARTSYS) {
 			clear_bit(STOP_TX, &port->flags);
 			fwtty_restart_tx(port);
Signature · 1 line
2.30.1