usb: wusbcore: skip done segs before completing aborted transfer
authorThomas Pugliese <thomas.pugliese@gmail.com>
Tue, 16 Sep 2014 21:36:02 +0000 (16:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 05:06:59 +0000 (22:06 -0700)
commitb94be0db5b17fe5616ecfc4c064264625f92afb2
tree6fb63e4a904b2ad143eb8809f0273beb4ce754fe
parentf55025289cf7b5694d5c8af13c512660196ee285
usb: wusbcore: skip done segs before completing aborted transfer

When completing an aborted transfer, skip done segs before calling
wa_complete_remaining_xfer_segs to avoid a runtime warning.  The warning
is harmless in this case but avoiding it prevents false error reports.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/wa-xfer.c