Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);