Skip to contentSkip to conversation

tty: serial_core: Spelling correction

PATCH In review Hariprasad Kelam 2 participants 2 messages Mar 22, 2019 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty: serial_core: Spelling correction

fix warning reported by checkpatch tool

---
 drivers/tty/serial/serial_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/serial_core.c +1 -1
index 351843f..69f4871 100644
@@ -1514,7 +1514,7 @@ static void uart_set_termios(struct tty_struct *tty,
 	}
 
 	uart_change_speed(tty, state, old_termios);
-	/* reload cflag from termios; port driver may have overriden flags */
+	/* reload cflag from termios; port driver may have overridden flags */
 	cflag = tty->termios.c_cflag;
 
 	/* Handle transition to B0 status */
Signature · 1 line
2.7.4
#1 lore raw
Quoted 2 lines · Hariprasad Kelam

fix warning reported by checkpatch tool

It is much better if you explicitly mention what exactly you are fixing, e.g. fix spelling mistake "overriden" -> "overridden"

It makes it easier for people to review your changes and give you feedback.

Cultivate this practice and people will appreciate it. :)

Thanks
--
Gustavo

Quoted 19 lines
---
 drivers/tty/serial/serial_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/serial_core.c +1 -1
index 351843f..69f4871 100644
@@ -1514,7 +1514,7 @@ static void uart_set_termios(struct tty_struct *tty,
 	}
 
 	uart_change_speed(tty, state, old_termios);
-	/* reload cflag from termios; port driver may have overriden flags */
+	/* reload cflag from termios; port driver may have overridden flags */
 	cflag = tty->termios.c_cflag;
 
 	/* Handle transition to B0 status */