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

Commit 1b8c353a authored by Yuanyuan Liu's avatar Yuanyuan Liu Committed by Matt Wagantall
Browse files

icnss: Fix pointer check error



Fix pointer check error as penv->ops is NULL by default when
icnss driver is initialized.

Change-Id: I8a13044511a1d7a9b3f772bf1f0b6849c803f6d8
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent 957b38ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ int icnss_register_driver(struct icnss_driver_ops *ops)
		goto out;
	}

	if (!penv->ops) {
	if (penv->ops) {
		pr_err("icnss: driver already registered\n");
		ret = -EEXIST;
		goto out;