]> git.baikalelectronics.ru Git - kernel.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)
commita62c1b80274fcdb7d2dff5383c47022b6dc58665
treeac2f5d77acd5cb70ed9fb823123d791a34315823
parent821e6a0f2cfc6f7379893214f743512117ccf17f
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