Commit 8eb62f3f authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

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: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 127a27c3
......@@ -3695,7 +3695,7 @@ int wilc_deinit(struct wilc_vif *vif)
if (!hif_drv) {
PRINT_ER("hif_drv = NULL\n");
return 0;
return -EFAULT;
}
down(&hif_sema_deinit);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment