summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/jsm/jsm_neo.c
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2022-05-13 11:29:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-19 19:26:17 +0300
commit2da6f1e5f72a3ea8a5aed85a8473a710d2e41ffb (patch)
tree07e38613fa51df8e98d770bf0966b05aa5d2721c /drivers/tty/serial/jsm/jsm_neo.c
parent503f418b10040b9b1044734b21ab2a3bea810aad (diff)
downloadlinux-2da6f1e5f72a3ea8a5aed85a8473a710d2e41ffb.tar.xz
serial: jsm: Use B0 instead of 0
Use B0 to check zero baudrate rather than literal 0. While at it, remove extra parenthesis around CBAUD. Reviewed-by: Johan Hovold <johan@kernel.org> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20220513082906.11096-6-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/jsm/jsm_neo.c')
-rw-r--r--drivers/tty/serial/jsm/jsm_neo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/jsm/jsm_neo.c b/drivers/tty/serial/jsm/jsm_neo.c
index 0cf586c10688..0c78f66276cd 100644
--- a/drivers/tty/serial/jsm/jsm_neo.c
+++ b/drivers/tty/serial/jsm/jsm_neo.c
@@ -938,7 +938,7 @@ static void neo_param(struct jsm_channel *ch)
/*
* If baud rate is zero, flush queues, and set mval to drop DTR.
*/
- if ((ch->ch_c_cflag & (CBAUD)) == 0) {
+ if ((ch->ch_c_cflag & CBAUD) == B0) {
ch->ch_r_head = ch->ch_r_tail = 0;
ch->ch_e_head = ch->ch_e_tail = 0;