diff options
author | Xenia Ragiadakou <burzalodowa@gmail.com> | 2013-09-09 06:29:54 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-10-16 15:24:32 -0400 |
commit | fd54498733f8c372deca99892ae8cae0799dfe68 (patch) | |
tree | f6845d9e85c2fa5b2e779f972b023a8087226fe2 /drivers/usb/host | |
parent | 07948a8da6241984b8359830498855573d552d0d (diff) |
xhci: remove unused 'ep_ring' variable in handle_cmd_completion()
This patch removes the variable 'ep_ring' that is assigned in
TRB_CONFIG_EP switch case but never used.
Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-ring.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 39a2bfbeefb5..0bef11b3dd22 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c | |||
@@ -1462,7 +1462,6 @@ static void handle_cmd_completion(struct xhci_hcd *xhci, | |||
1462 | struct xhci_input_control_ctx *ctrl_ctx; | 1462 | struct xhci_input_control_ctx *ctrl_ctx; |
1463 | struct xhci_virt_device *virt_dev; | 1463 | struct xhci_virt_device *virt_dev; |
1464 | unsigned int ep_index; | 1464 | unsigned int ep_index; |
1465 | struct xhci_ring *ep_ring; | ||
1466 | unsigned int ep_state; | 1465 | unsigned int ep_state; |
1467 | 1466 | ||
1468 | cmd_dma = le64_to_cpu(event->cmd_trb); | 1467 | cmd_dma = le64_to_cpu(event->cmd_trb); |
@@ -1542,7 +1541,6 @@ static void handle_cmd_completion(struct xhci_hcd *xhci, | |||
1542 | ep_index != (unsigned int) -1 && | 1541 | ep_index != (unsigned int) -1 && |
1543 | le32_to_cpu(ctrl_ctx->add_flags) - SLOT_FLAG == | 1542 | le32_to_cpu(ctrl_ctx->add_flags) - SLOT_FLAG == |
1544 | le32_to_cpu(ctrl_ctx->drop_flags)) { | 1543 | le32_to_cpu(ctrl_ctx->drop_flags)) { |
1545 | ep_ring = xhci->devs[slot_id]->eps[ep_index].ring; | ||
1546 | ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; | 1544 | ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state; |
1547 | if (!(ep_state & EP_HALTED)) | 1545 | if (!(ep_state & EP_HALTED)) |
1548 | goto bandwidth_change; | 1546 | goto bandwidth_change; |