Преглед изворни кода

Staging: serqt_usb2: Two branches the same in qt_set_termios()

Regardless of the condition, the branches executed the same code

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Roel Kluin пре 15 година
родитељ
комит
35f077dca7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      drivers/staging/serqt_usb2/serqt_usb2.c

+ 1 - 1
drivers/staging/serqt_usb2/serqt_usb2.c

@@ -1277,7 +1277,7 @@ static void qt_set_termios(struct tty_struct *tty,
 	if (cflag & CSTOPB)
 	if (cflag & CSTOPB)
 		new_LCR |= SERIAL_TWO_STOPB;
 		new_LCR |= SERIAL_TWO_STOPB;
 	else
 	else
-		new_LCR |= SERIAL_TWO_STOPB;
+		new_LCR |= SERIAL_ONE_STOPB;
 
 
 	dbg("%s - 4\n", __func__);
 	dbg("%s - 4\n", __func__);