]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: mos7840: remove unused variable
authorJohan Hovold <jhovold@gmail.com>
Thu, 8 Nov 2012 17:28:59 +0000 (18:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:16:35 +0000 (13:16 -0800)
Fix warning about unused variable introduced by commit e681b66f2e19fa
("USB: mos7840: remove invalid disconnect handling") upstream.

A subsequent fix which removed the disconnect function got rid of the
warning but that one was only backported to v3.6.

Reported-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7840.c

index 0179d348c2608ea7e56cfce2e3a61aaaab7d5614..c8542356898b4f6cdb81d1789a906a34d2b4152e 100644 (file)
@@ -2581,7 +2581,6 @@ error:
 static void mos7840_disconnect(struct usb_serial *serial)
 {
        int i;
-       unsigned long flags;
        struct moschip_port *mos7840_port;
        dbg("%s", " disconnect :entering..........");