greybus: loopback: Fix broken synchonous test
authorAlexandre Bailon <abailon@baylibre.com>
Tue, 8 Mar 2016 16:40:16 +0000 (17:40 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 10 Mar 2016 06:31:32 +0000 (22:31 -0800)
commit01480ba336982d49e2208636e38c0a80b732eba8
treeeda7c51203c2f76cf18fb42c0da8bb36e9d8682a
parent58a527afff2b27bc912dbb7111d3f23d4f28105b
greybus: loopback: Fix broken synchonous test

loopback driver use the send_count variable to know the test progress.
The test may be stopped or change but this variable is never cleaned.
Such situation may break the next run.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c