USB: fix u132-hcd code/data warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 6 May 2010 23:46:03 +0000 (16:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:43 +0000 (13:21 -0700)
Fix gcc warning on mixed declarations/code:
drivers/usb/host/u132-hcd.c:1450: warning: ISO C90 forbids mixed declarations and code

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/u132-hcd.c

index 11a97d93dff2853ee5e18a044f6cb5745869620a..5b31bae92dbca1438e6bb1bcd203d1a661e630aa 100644 (file)
@@ -1446,9 +1446,9 @@ static void u132_hcd_endp_work_scheduler(struct work_struct *work)
                        return;
                } else {
                        int retval;
-                       address = u132->addr[endp->usb_addr].address;
                        struct urb *urb = endp->urb_list[ENDP_QUEUE_MASK &
                                endp->queue_next];
+                       address = u132->addr[endp->usb_addr].address;
                        endp->active = 1;
                        ring->curr_endp = endp;
                        ring->in_use = 1;