patch-2.4.7 linux/drivers/usb/serial/empeg.c

Next file: linux/drivers/usb/serial/ftdi_sio.c
Previous file: linux/drivers/usb/serial/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/drivers/usb/serial/empeg.c linux/drivers/usb/serial/empeg.c
@@ -247,7 +247,6 @@
 static void empeg_close (struct usb_serial_port *port, struct file * filp)
 {
 	struct usb_serial *serial;
-	unsigned char *transfer_buffer;
 
 	if (port_paranoia_check (port, __FUNCTION__))
 		return;
@@ -263,14 +262,6 @@
 	--port->open_count;
 
 	if (port->open_count <= 0) {
-		transfer_buffer =  kmalloc (0x12, GFP_KERNEL);
-
-		if (!transfer_buffer) {
-			err(__FUNCTION__ " - kmalloc(%d) failed.", 0x12);
-		} else {
-			kfree (transfer_buffer);
-		}
-
 		/* shutdown our bulk read */
 		usb_unlink_urb (port->read_urb);
 		port->active = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)