summaryrefslogtreecommitdiff
path: root/drivers/android
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-01-23 12:04:27 -0600
committerAmit Pundir <amit.pundir@linaro.org>2018-07-19 22:00:44 +0530
commitd39ff4dd92871c7b2b02bd6aaa0ae3c25d75ea01 (patch)
tree720e5c1f8b002f49e009cbb658e90cd32cf9e439 /drivers/android
parent9a6d1886c9d24eb07c05a02ba4ca2f223ca16f32 (diff)
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: Gustavo A. R. Silva <gustavo@embeddedor.com> Cc: Todd Kjos <tkjos@android.com> Cc: Martijn Coenen <maco@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 197410ad884eb18b31d48e9d8e64cb5a9e326f2f) Change-Id: I30bed831d6b6ff2e9e3e521ccc5d6836f0b30944
Diffstat (limited to 'drivers/android')
-rw-r--r--drivers/android/binder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index 98c00b57ad80..3ec97d41cf30 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -251,7 +251,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);
/*
@@ -2805,7 +2805,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;
}
}
@@ -3670,7 +3670,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);