Просмотр исходного кода

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 лет назад
Родитель
Сommit
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)
 		new_LCR |= SERIAL_TWO_STOPB;
 	else
-		new_LCR |= SERIAL_TWO_STOPB;
+		new_LCR |= SERIAL_ONE_STOPB;
 
 	dbg("%s - 4\n", __func__);