Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e62dd6f4 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Martijn Coenen
Browse files

UPSTREAM: android: binder: Use true and false for boolean values



Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Todd Kjos <tkjos@android.com>
Cc: Martijn Coenen <maco@android.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 197410ad884eb18b31d48e9d8e64cb5a9e326f2f)

Change-Id: I30bed831d6b6ff2e9e3e521ccc5d6836f0b30944
parent 174562af
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -250,7 +250,7 @@ static struct binder_transaction_log_entry *binder_transaction_log_add(
	unsigned int cur = atomic_inc_return(&log->cur);

	if (cur >= ARRAY_SIZE(log->entry))
		log->full = 1;
		log->full = true;
	e = &log->entry[cur % ARRAY_SIZE(log->entry)];
	WRITE_ONCE(e->debug_id_done, 0);
	/*
@@ -2804,7 +2804,7 @@ static bool binder_proc_transaction(struct binder_transaction *t,
		if (node->has_async_transaction) {
			pending_async = true;
		} else {
			node->has_async_transaction = 1;
			node->has_async_transaction = true;
		}
	}

@@ -3669,7 +3669,7 @@ static int binder_thread_write(struct binder_proc *proc,
				w = binder_dequeue_work_head_ilocked(
						&buf_node->async_todo);
				if (!w) {
					buf_node->has_async_transaction = 0;
					buf_node->has_async_transaction = false;
				} else {
					binder_enqueue_work_ilocked(
							w, &proc->todo);