Commit c2bbedf0 authored by Johanna Abrahamsson's avatar Johanna Abrahamsson Committed by Greg Kroah-Hartman

staging: android: ion: Remove valid_handle variable in ion_free_nolock

It is not neccessary to save the value of ion_handle_validate since it
is only used once.
Signed-off-by: default avatarJohanna Abrahamsson <johanna@mjao.org>
Acked-by: default avatarLaura Abbott <labbott@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0210737c
......@@ -548,11 +548,7 @@ EXPORT_SYMBOL(ion_alloc);
static void ion_free_nolock(struct ion_client *client,
struct ion_handle *handle)
{
bool valid_handle;
valid_handle = ion_handle_validate(client, handle);
if (!valid_handle) {
if (!ion_handle_validate(client, handle)) {
WARN(1, "%s: invalid handle passed to free.\n", __func__);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment