staging: wilc1000: changes logic when happened mq_send fail
commit27e1f1396465944d9f78ad4ee26e596c2e260092
authorLeo Kim <leo.kim@atmel.com>
Fri, 1 Apr 2016 08:44:13 +0000 (1 17:44 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 04:58:42 +0000 (28 21:58 -0700)
tree00d19eb452d96117eee5ffa405c35c6645e8b83a
parentae33a836df17456aa80eff664a070592e2482ea2
staging: wilc1000: changes logic when happened mq_send fail

This patch changes logic when happened mq_send fail.
The check as a result value that mq_send fail.
But, regardless of the result value then perform a semaphore up.
That is an occur that semaphore locking.
Add to 'else' routine and move to 'else' position a semaphore up.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c