CSIZE is two-bit wide and only CS5 through CS8 are possible values.

Signed-off-by: Johan Hovold <[email protected]>
---
 drivers/usb/serial/cp210x.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c
index f61477bed3a8..be0a2ca06bfb 100644
--- a/drivers/usb/serial/cp210x.c
+++ b/drivers/usb/serial/cp210x.c
@@ -929,16 +929,9 @@ static void cp210x_set_termios(struct tty_struct *tty,
                        dev_dbg(dev, "%s - data bits = 7\n", __func__);
                        break;
                case CS8:
-                       bits |= BITS_DATA_8;
-                       dev_dbg(dev, "%s - data bits = 8\n", __func__);
-                       break;
-               /*case CS9:
-                       bits |= BITS_DATA_9;
-                       dev_dbg(dev, "%s - data bits = 9\n", __func__);
-                       break;*/
                default:
-                       dev_dbg(dev, "cp210x driver does not support the number 
of bits requested, using 8 bit mode\n");
                        bits |= BITS_DATA_8;
+                       dev_dbg(dev, "%s - data bits = 8\n", __func__);
                        break;
                }
                if (cp210x_write_u16_reg(port, CP210X_SET_LINE_CTL, bits))
-- 
2.7.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to