ti-st: Fix complete_all() wrong usage
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 15 Apr 2016 08:22:27 +0000 (10:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 May 2016 21:20:04 +0000 (14:20 -0700)
commit8d026465ecf68823c633f7b60d39a8a17dd3bc27
tree7363bcefc3acada723eda0f62d90fb7cf9adebda
parent66b58edf592fd7a6fc0f106e0809e52b52d4722f
ti-st: Fix complete_all() wrong usage

complete_all() should only be called once, doing it twice is a clear bug.

8565adbc8214 ("drivers/misc/ti-st: fix read fw version cmd") added the
additional complete_all() call. Since we call complete_all() when
leaving the function we can drop the complete_all() call inside
true branch of the if statement.

Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Cc: Pavan Savoy <pavan_savoy@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ti-st/st_kim.c