xHCI: Remove redundant variable in xhci_resume()
authorAndiry Xu <andiry.xu@amd.com>
Thu, 6 Jan 2011 07:43:17 +0000 (15:43 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 14 Mar 2011 01:07:09 +0000 (18:07 -0700)
commit019a35f1142b1cd153c8a38338515e633ec0cf77
treea61347c56b71a62d9774d3012f7dd449b174674f
parent518e848ea8e2932ce18ce2daef8ad5f55a145f27
xHCI: Remove redundant variable in xhci_resume()

Set hcd->state = HC_STATE_SUSPENDED if there is a power loss during system
resume or the system is hibernated, otherwise leave it be. The variable
old_state is redundant and made an unreachable code path, so remove it.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci.c