greybus: loopback: Fix incoherency in calculations in the case of error
authorAlexandre Bailon <abailon@baylibre.com>
Thu, 25 Feb 2016 17:19:14 +0000 (18:19 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 26 Feb 2016 01:05:31 +0000 (17:05 -0800)
commitd9048d8c96bfe2d18cdf7205b3de97aa344283a7
treeb326955e23a885fff7825875dcc166eb99807c0b
parentd97bbf3ed6211c01bd7df77d405dee2e9846cd68
greybus: loopback: Fix incoherency in calculations in the case of error

Currently, in case the case of error, statistics are updated for
asynchronous but not for an asynchronous operation.
Do not update the statistics in the case of error.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c