Remove code guarded by #ifdef VIZZINI_IWA, not defined anywhere
authorBen Hutchings <ben@decadent.org.uk>
Tue, 10 Nov 2015 20:23:28 +0000 (20:23 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Nov 2015 20:24:52 +0000 (20:24 +0000)
vizzini.c
vizzini.h

index bbd78bd..b0b30d7 100644 (file)
--- a/vizzini.c
+++ b/vizzini.c
@@ -1120,17 +1120,6 @@ static void acm_tty_set_termios(struct tty_struct *tty,
                 format_stop = UART_FORMAT_STOP_1;
         }
 
-#ifdef VIZZINI_IWA
-        if (format_size == UART_FORMAT_SIZE_8) {
-                acm->iwa = format_parity;
-                if (portdata->iwa != UART_FORMAT_PARITY_NONE) {
-                        format_size = UART_FORMAT_SIZE_9;
-                        format_parity = UART_FORMAT_PARITY_NONE;
-                }
-        } else {
-                acm->iwa = UART_FORMAT_PARITY_NONE;
-        }
-#endif
         vizzini_set_reg(acm, block, UART_FORMAT, format_size | format_parity | format_stop);
 
         if (cflag & CRTSCTS) {
@@ -1156,10 +1145,6 @@ static void acm_tty_set_termios(struct tty_struct *tty,
         if (acm->trans9) {
                 /* Turn on wide mode if we're 9-bit transparent. */
                 vizzini_set_reg(acm, EPLOCALS_REG_BLOCK, (block * MEM_EP_LOCALS_SIZE) + EP_WIDE_MODE, 1);
-#ifdef VIZZINI_IWA
-        } else if (acm->iwa != UART_FORMAT_PARITY_NONE) {
-                vizzini_set_reg(acm, EPLOCALS_REG_BLOCK, (block * MEM_EP_LOCALS_SIZE) + EP_WIDE_MODE, 1);
-#endif
         } else if (!acm->preciseflags) {
                 /* Turn off wide mode unless we have precise flags. */
                 vizzini_set_reg(acm, EPLOCALS_REG_BLOCK, (block * MEM_EP_LOCALS_SIZE) + EP_WIDE_MODE, 0);
index a433bf0..3470ce1 100644 (file)
--- a/vizzini.h
+++ b/vizzini.h
@@ -202,10 +202,6 @@ struct acm {
         int           preciseflags; /* USB: wide mode, TTY: flags per character */
         int           trans9;   /* USB: wide mode, serial 9N1 */
 
-#ifdef VIZZINI_IWA
-        int           iwa;
-#endif
-
 };
 
 #define CDC_DATA_INTERFACE_TYPE        0x0a