binder: remove unused binder_alloc->buffer_free
authorCarlos Llamas <cmllamas@google.com>
Mon, 29 Aug 2022 20:12:52 +0000 (20:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2022 14:17:14 +0000 (16:17 +0200)
The ->buffer_free member was introduced in the first revision of the
driver under staging but it appears like it was never actually used
according to git's history. Remove it from binder_alloc.

Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20220829201254.1814484-6-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_alloc.h

index 0c37935..f61a12d 100644 (file)
@@ -109,7 +109,6 @@ struct binder_alloc {
        size_t free_async_space;
        struct binder_lru_page *pages;
        size_t buffer_size;
-       uint32_t buffer_free;
        int pid;
        size_t pages_high;
        bool oneway_spam_detected;