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

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

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
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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;
	}