binder: remove binder_alloc_set_vma()
authorCarlos Llamas <cmllamas@google.com>
Tue, 6 Sep 2022 13:59:46 +0000 (13:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Sep 2022 15:02:06 +0000 (17:02 +0200)
commitd6d04d71daae9377129b13641f97ba2a961b2b26
tree537e0c91967e89b07cd87a29a0ff4945d0a06e87
parente66b77e50522845d494a4a61ea2ad8f0d046a56f
binder: remove binder_alloc_set_vma()

The mmap_locked asserts here are not needed since this is only called
back from the mmap stack in ->mmap() and ->close() which always acquire
the lock first. Remove these asserts along with binder_alloc_set_vma()
altogether since it's trivial enough to be consumed by callers.

Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20220906135948.3048225-3-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_alloc.c