mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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: Johanna Abrahamsson <johanna@mjao.org> Acked-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0210737c85
commit
c2bbedf01f
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue