ion: silence logical-not-parentheses warning
authorMichael Benedict <michaelbt@live.com>
Sat, 8 Jun 2019 17:27:42 +0000 (03:27 +1000)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 15:08:56 +0000 (01:08 +1000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
drivers/staging/android/ion/ion.c

index afc0880137d7cb2adced676c91bf53bbd7e50725..42c4e871bbf275b16c8b3fa4eef35a181c3dcc5d 100644 (file)
@@ -942,7 +942,7 @@ static void user_ion_free_nolock(struct ion_client *client, struct ion_handle *h
                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;
        }