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

Commit 11926cbd authored by Sudarshan Rajagopalan's avatar Sudarshan Rajagopalan Committed by Gerrit - the friendly Code Review server
Browse files

ion: fix logical-not comparison warning



Fixes compiler warning when a logical-not on a variable
is applied while comparing it with value zero.

Change-Id: I92aa16bd0d57a0d59ecd26eef1ac92220332998d
Signed-off-by: default avatarSudarshan Rajagopalan <sudaraja@codeaurora.org>
parent 5404e350
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -699,7 +699,7 @@ static void user_ion_free_nolock(struct ion_client *client,
		WARN(1, "%s: invalid handle passed to free.\n", __func__);
		WARN(1, "%s: invalid handle passed to free.\n", __func__);
		return;
		return;
	}
	}
	if (!handle->user_ref_count > 0) {
	if (handle->user_ref_count == 0) {
		WARN(1, "%s: User does not have access!\n", __func__);
		WARN(1, "%s: User does not have access!\n", __func__);
		return;
		return;
	}
	}