GCC warns that buffer_size and buffer variables may be used uninitialized. Set default values to make the compiler happy and get rid of the build noise. Signed-off-by: Javier Martinez Canillas <javier@xxxxxxxxxxxx> --- drivers/staging/android/binder.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index c283212..dfa646f 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c @@ -716,8 +716,8 @@ static struct binder_buffer *binder_alloc_buf(struct binder_proc *proc, size_t offsets_size, int is_async) { struct rb_node *n = proc->free_buffers.rb_node; - struct binder_buffer *buffer; - size_t buffer_size; + struct binder_buffer *buffer = NULL; + size_t buffer_size = 0; struct rb_node *best_fit = NULL; void *has_page_addr; void *end_page_addr; -- 1.7.7.6 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel