Skip to content

Commit 367b356

Browse files
Colin Ian Kinggregkh
authored andcommitted
binder: remove redundant variable page_addr
Variable page_addr is being assigned a value that is never read. The variable is redundant and can be removed. Cleans up clang scan build warning: warning: Value stored to 'page_addr' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@intel.com> Fixes: 162c797 ("binder: avoid user addresses in debug logs") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202312060851.cudv98wG-lkp@intel.com/ Acked-by: Carlos Llamas <cmllamas@google.com> Link: https://lore.kernel.org/r/20240307221505.101431-1-cmllamas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0199478 commit 367b356

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/android/binder_alloc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,15 +925,13 @@ void binder_alloc_deferred_release(struct binder_alloc *alloc)
925925
int i;
926926

927927
for (i = 0; i < alloc->buffer_size / PAGE_SIZE; i++) {
928-
unsigned long page_addr;
929928
bool on_lru;
930929

931930
if (!alloc->pages[i].page_ptr)
932931
continue;
933932

934933
on_lru = list_lru_del_obj(&binder_freelist,
935934
&alloc->pages[i].lru);
936-
page_addr = alloc->buffer + i * PAGE_SIZE;
937935
binder_alloc_debug(BINDER_DEBUG_BUFFER_ALLOC,
938936
"%s: %d: page %d %s\n",
939937
__func__, alloc->pid, i,

0 commit comments

Comments
 (0)