staging: wilc1000: fix return error code of wilc_deinit
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 5 Feb 2016 01:35:14 +0000 (10:35 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
commit8eb62f3f6d8e58ec1b0eedee73ddd371a80a1bd3
treeddee6536b430b3bea7c1b0919ee81a9f1e5839ac
parent127a27c3fbe01b8b35e658b0b6f655be43290f95
staging: wilc1000: fix return error code of wilc_deinit

It should be returned error code as -EFAULT instead of 0 when hif_drv is
NULL.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c