usb-cypress: There is no 0 case to go with CS5/6/7/8 so remove the test
Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -1093,7 +1093,6 @@ static void cypress_set_termios(struct tty_struct *tty,
|
|||||||
} else
|
} else
|
||||||
parity_enable = parity_type = 0;
|
parity_enable = parity_type = 0;
|
||||||
|
|
||||||
if (cflag & CSIZE) {
|
|
||||||
switch (cflag & CSIZE) {
|
switch (cflag & CSIZE) {
|
||||||
case CS5:
|
case CS5:
|
||||||
data_bits = 0;
|
data_bits = 0;
|
||||||
@@ -1111,9 +1110,7 @@ static void cypress_set_termios(struct tty_struct *tty,
|
|||||||
err("%s - CSIZE was set, but not CS5-CS8",
|
err("%s - CSIZE was set, but not CS5-CS8",
|
||||||
__func__);
|
__func__);
|
||||||
data_bits = 3;
|
data_bits = 3;
|
||||||
} else
|
}
|
||||||
data_bits = 3;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&priv->lock, flags);
|
spin_lock_irqsave(&priv->lock, flags);
|
||||||
oldlines = priv->line_control;
|
oldlines = priv->line_control;
|
||||||
if ((cflag & CBAUD) == B0) {
|
if ((cflag & CBAUD) == B0) {
|
||||||
|
Reference in New Issue
Block a user