summaryrefslogtreecommitdiffstats
path: root/drivers/android
diff options
context:
space:
mode:
authorMrinal Pandey <mrinalmni@gmail.com>2020-07-24 18:44:03 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-29 17:05:38 +0200
commit8df5b9492202e9cac9917465e945fcf478d55404 (patch)
tree370386150cdaa89fb01e6e76fa401bd8a0afdbbc /drivers/android
parent72b93c79dbbe261371abb1bf3cf7302cfe31e8d9 (diff)
downloadlinux-8df5b9492202e9cac9917465e945fcf478d55404.tar.bz2
drivers: android: Remove braces for a single statement if-else block
Remove braces for both if and else block as suggested by checkpatch. Signed-off-by: Mrinal Pandey <mrinalmni@gmail.com> Link: https://lore.kernel.org/r/20200724131403.dahfhdwa3wirzkxj@mrinalpandey Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android')
-rw-r--r--drivers/android/binder.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index 2123655ebb7c..f936530a19b0 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2759,11 +2759,10 @@ static bool binder_proc_transaction(struct binder_transaction *t,
binder_node_lock(node);
if (oneway) {
BUG_ON(thread);
- if (node->has_async_transaction) {
+ if (node->has_async_transaction)
pending_async = true;
- } else {
+ else
node->has_async_transaction = true;
- }
}
binder_inner_proc_lock(proc);