Merge "ion: fix logical-not comparison warning"

This commit is contained in:
Linux Build Service Account 2017-05-20 01:37:17 -07:00 committed by Gerrit - the friendly Code Review server
commit 2bb69ccc76

View file

@ -699,7 +699,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;
}