Skip to contentSkip to conversation

serqt_usb2: Two branches the same in qt_set_termios()

PATCH New Roel Kluin 1 participant 1 message Jan 17, 2010 Staging

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 serqt_usb2: Two branches the same in qt_set_termios()

Regardless of the condition, the branches executed the same code

---
Is this right?

drivers/staging/serqt_usb2/serqt_usb2.c +1 -1
index 060e9de..5401169 100644
@@ -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__);