|
@@ -41,9 +41,6 @@ static int zte_ev_usb_serial_open(struct tty_struct *tty,
|
|
|
int len;
|
|
int len;
|
|
|
unsigned char *buf;
|
|
unsigned char *buf;
|
|
|
|
|
|
|
|
- if (port->number != 0)
|
|
|
|
|
- return -ENODEV;
|
|
|
|
|
-
|
|
|
|
|
buf = kmalloc(MAX_SETUP_DATA_SIZE, GFP_KERNEL);
|
|
buf = kmalloc(MAX_SETUP_DATA_SIZE, GFP_KERNEL);
|
|
|
if (!buf)
|
|
if (!buf)
|
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
@@ -166,9 +163,6 @@ static void zte_ev_usb_serial_close(struct usb_serial_port *port)
|
|
|
int len;
|
|
int len;
|
|
|
unsigned char *buf;
|
|
unsigned char *buf;
|
|
|
|
|
|
|
|
- if (port->number != 0)
|
|
|
|
|
- return;
|
|
|
|
|
-
|
|
|
|
|
buf = kmalloc(MAX_SETUP_DATA_SIZE, GFP_KERNEL);
|
|
buf = kmalloc(MAX_SETUP_DATA_SIZE, GFP_KERNEL);
|
|
|
if (!buf)
|
|
if (!buf)
|
|
|
return;
|
|
return;
|