]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: wilc1000: fix static checker warning to unlock mutex in wilc_deinit()
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 5 Jul 2018 09:22:35 +0000 (14:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2018 15:37:31 +0000 (17:37 +0200)
commit15c3381e3abba34c8634575305db1e414e587e3b
tree72847777d09dc401fcea22afb0ff5b51de31b9cf
parent9b227cb1cf28464144fe4054f0c0fadf471649cb
staging: wilc1000: fix static checker warning to unlock mutex in wilc_deinit()

Fix for static checker warning inconsistent returns of
'hif_deinit_lock'(more details [1]).

"drivers/staging/wilc1000/host_interface.c:3390 wilc_deinit()
              warn: inconsistent returns 'hif_deinit_lock'."

Fixes: ff52a57a7a42 ("staging: wilc1000: move the allocation of cmd out
of wilc_enqueue_cmd()")

[1]. https://www.spinics.net/lists/linux-driver-devel/msg114216.html

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c