]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
USB: xhci: simplify logic of skipping missed isoc TDs
authorDmitry Torokhov <dtor@vmware.com>
Thu, 24 Mar 2011 03:47:05 +0000 (20:47 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 13 Apr 2011 23:19:48 +0000 (16:19 -0700)
commit926008c9386dde09b015753b6681c502177baa30
treeac2f5d77acd5cb70ed9fb823123d791a34315823
parent575688e1e5f462c44ddd608ce3ec9f38b64c3c0d
USB: xhci: simplify logic of skipping missed isoc TDs

The logic of the handling Missed Service Error Events was pretty
confusing as we were checking the same condition several times.
In addition, it caused compiler warning since the compiler could
not figure out that event_trb is actually unused in case we are
skipping current TD.

Fix that by rearranging "skip" condition checks, and factor out
skip_isoc_td() so that it is called explicitly.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-ring.c