Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232610
b: refs/heads/master
c: 01446ef
h: refs/heads/master
v: v3
  • Loading branch information
Max Vozeler authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent 972aa90 commit 9acd8c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd65f6233f6bc3233e7910752689fe3a45dc2e0c
refs/heads/master: 01446ef5af4e8802369bf4d257806e24345a9371
3 changes: 0 additions & 3 deletions trunk/drivers/staging/usbip/vhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ struct vhci_hcd {
* But, the index of this array begins from 0.
*/
struct vhci_device vdev[VHCI_NPORTS];

/* vhci_device which has not been assiged its address yet */
int pending_port;
};


Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/staging/usbip/vhci_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ void rh_port_connect(int rhport, enum usb_device_speed speed)
* the_controller->vdev[rhport].ud.status = VDEV_CONNECT;
* spin_unlock(&the_controller->vdev[rhport].ud.lock); */

the_controller->pending_port = rhport;

spin_unlock_irqrestore(&the_controller->lock, flags);

usb_hcd_poll_rh_status(vhci_to_hcd(the_controller));
Expand Down Expand Up @@ -575,7 +573,7 @@ static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
return urb->status;
}

vdev = port_to_vdev(the_controller->pending_port);
vdev = port_to_vdev(urb->dev->portnum-1);

/* refuse enqueue for dead connection */
spin_lock(&vdev->ud.lock);
Expand Down

0 comments on commit 9acd8c6

Please sign in to comment.