binder: make oversized buffer code more readable
authorCarlos Llamas <cmllamas@google.com>
Fri, 1 Dec 2023 17:21:50 +0000 (17:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2023 00:23:40 +0000 (09:23 +0900)
commitde0e6573125f8ea7a01a9b05a45b0c73116c73b2
treeadd3fbc05ce90f3c23663b8c15385ece392a3c24
parent258ce20ede33c551002705fa1488864fb287752c
binder: make oversized buffer code more readable

The sections in binder_alloc_new_buf_locked() dealing with oversized
buffers are scattered which makes them difficult to read. Instead,
consolidate this code into a single block to improve readability.

No functional change here.

Signed-off-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-22-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_alloc.c