greybus: loopback: Fix calculations error for ping transfers
authorAlexandre Bailon <abailon@baylibre.com>
Thu, 25 Feb 2016 17:19:13 +0000 (18:19 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 26 Feb 2016 01:05:31 +0000 (17:05 -0800)
commitd97bbf3ed6211c01bd7df77d405dee2e9846cd68
tree19918e08bb3258307642777c48c1ff5ceda58846
parentbf9deb29e2b3c5dbc97ce559325f4faa0bad5022
greybus: loopback: Fix calculations error for ping transfers

For the async ping transfer, statistics are counted twice,
once after the after the gb_loopback_async_operation() and
once in the callback.
Only keep the one in the callback.

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