Hi,

Here's a patch from xavyer that cleans up some unneeded logic in the
empeg.c driver.  It applies cleanly against 2.4.6-pre6.

thanks,

greg k-h


--- linux/drivers/usb/serial/empeg.c    Thu Jun 28 10:50:25 2001
+++ linux-usb/drivers/usb/serial/empeg.c        Thu Jun 21 04:54:05 2001
@@ -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;


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to