USB: cypress_m8: remove unused drain define
[firefly-linux-kernel-4.4.55.git] / drivers / usb / serial / cypress_m8.c
index e23c77925e7a45445e6c39f4bf4b75b69cad5b6c..d963748652893bfe9763e5121b8acde5f7afdaef 100644 (file)
@@ -85,7 +85,6 @@ static int unstable_bauds;
 
 /* write buffer size defines */
 #define CYPRESS_BUF_SIZE       1024
-#define CYPRESS_CLOSING_WAIT   (30*HZ)
 
 static const struct usb_device_id id_table_earthmate[] = {
        { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) },
@@ -1309,7 +1308,7 @@ static void cypress_read_int_callback(struct urb *urb)
        /* process read if there is data other than line status */
        if (tty && bytes > i) {
                tty_insert_flip_string_fixed_flag(tty, data + i,
-                               bytes - i, tty_flag);
+                               tty_flag, bytes - i);
                tty_flip_buffer_push(tty);
        }