aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/serial/ftdi_sio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 9979d4920a32..44c5b7717fe8 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -2246,12 +2246,10 @@ static void ftdi_set_termios(struct tty_struct *tty,
2246 } 2246 }
2247 if (cflag & CSIZE) { 2247 if (cflag & CSIZE) {
2248 switch (cflag & CSIZE) { 2248 switch (cflag & CSIZE) {
2249 case CS5: urb_value |= 5; dbg("Setting CS5"); break;
2250 case CS6: urb_value |= 6; dbg("Setting CS6"); break;
2251 case CS7: urb_value |= 7; dbg("Setting CS7"); break; 2249 case CS7: urb_value |= 7; dbg("Setting CS7"); break;
2252 case CS8: urb_value |= 8; dbg("Setting CS8"); break; 2250 case CS8: urb_value |= 8; dbg("Setting CS8"); break;
2253 default: 2251 default:
2254 dev_err(&port->dev, "CSIZE was set but not CS5-CS8\n"); 2252 dev_err(&port->dev, "CSIZE was set but not CS7-CS8\n");
2255 } 2253 }
2256 } 2254 }
2257 2255