summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/loopback.c
diff options
context:
space:
mode:
authorAlexandre Bailon <abailon@baylibre.com>2016-02-25 18:19:13 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-02-25 17:05:31 -0800
commitd97bbf3ed6211c01bd7df77d405dee2e9846cd68 (patch)
tree19918e08bb3258307642777c48c1ff5ceda58846 /drivers/staging/greybus/loopback.c
parentbf9deb29e2b3c5dbc97ce559325f4faa0bad5022 (diff)
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>
Diffstat (limited to 'drivers/staging/greybus/loopback.c')
-rw-r--r--drivers/staging/greybus/loopback.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index f3ae2e9fc1bb..b40c95eb8801 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -969,7 +969,6 @@ static int gb_loopback_fn(void *data)
if (gb->async) {
if (type == GB_LOOPBACK_TYPE_PING) {
error = gb_loopback_async_ping(gb);
- gb_loopback_calculate_stats(gb);
} else if (type == GB_LOOPBACK_TYPE_TRANSFER) {
error = gb_loopback_async_transfer(gb, size);
} else if (type == GB_LOOPBACK_TYPE_SINK) {