diff options
| author | Colin Ian King <[email protected]> | 2020-09-10 15:12:21 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-09-16 15:30:37 +0000 |
| commit | 7369fa47c442a6d4268989b64fbc28af48f9126e (patch) | |
| tree | 1b9dc7a3e08244dd5c7b10ef3f78c5eccb3ff1f5 /drivers/android/binder_alloc.c | |
| parent | misc: hisi_hikey_usb: fix return of uninitialized ret status variable (diff) | |
| download | kernel-7369fa47c442a6d4268989b64fbc28af48f9126e.tar.gz kernel-7369fa47c442a6d4268989b64fbc28af48f9126e.zip | |
binder: remove redundant assignment to pointer n
The pointer n is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.
Acked-by: Todd Kjos <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/android/binder_alloc.c')
| -rw-r--r-- | drivers/android/binder_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index 910c53ba2c91..2f846b7ae8b8 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -347,7 +347,7 @@ static void debug_low_async_space_locked(struct binder_alloc *alloc, int pid) * and at some point we'll catch them in the act. This is more efficient * than keeping a map per pid. */ - struct rb_node *n = alloc->free_buffers.rb_node; + struct rb_node *n; struct binder_buffer *buffer; size_t total_alloc_size = 0; size_t num_buffers = 0; |
