292e742220
* add dev-package * modularize some kernel drivers * modernize Makefile to silence some warnings * fix various warnings * add some CVE patches [ci:skip-build]: already built successfully in CI
30 lines
1,009 B
Diff
30 lines
1,009 B
Diff
From a4c4914ebf40413c38f955236a8e139085328778 Mon Sep 17 00:00:00 2001
|
|
From: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
|
|
Date: Mon, 1 May 2017 15:52:29 -0700
|
|
Subject: [PATCH] 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: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
|
|
---
|
|
drivers/staging/android/ion/ion.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/gpu/ion/ion.c b/drivers/gpu/ion/ion.c
|
|
index 56508266d59d..1cf5962f1249 100644
|
|
--- a/drivers/gpu/ion/ion.c
|
|
+++ b/drivers/gpu/ion/ion.c
|
|
@@ -704,7 +704,7 @@ static void user_ion_free_nolock(struct ion_client *client,
|
|
WARN(1, "%s: invalid handle passed to free.\n", __func__);
|
|
return;
|
|
}
|
|
- if (!handle->user_ref_count > 0) {
|
|
+ if (handle->user_ref_count == 0) {
|
|
WARN(1, "%s: User does not have access!\n", __func__);
|
|
return;
|
|
}
|
|
--
|
|
2.21.0
|
|
|