]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: cyberjack: remove a unnecessary variable.
authorAndre Haupt <andre@bitwigglers.org>
Tue, 20 Nov 2007 10:41:37 +0000 (11:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:34:51 +0000 (14:34 -0800)
This also fixes a sparse warning that symbol 'result' shadows an earlier one.

Signed-off-by: Andre Haupt <andre@bitwigglers.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/cyberjack.c

index 4353df92487f528256ca27bb8169d287d3f85b63..8d9b045aa7e84b1e90f8f5431d088320466079b7 100644 (file)
@@ -319,7 +319,6 @@ static void cyberjack_read_int_callback( struct urb *urb )
        /* React only to interrupts signaling a bulk_in transfer */
        if( (urb->actual_length==4) && (data[0]==0x01) ) {
                short old_rdtodo;
-               int result;
 
                /* This is a announcement of coming bulk_ins. */
                unsigned short size = ((unsigned short)data[3]<<8)+data[2]+3;