drivers: android: Remove braces for a single statement if-else block
authorMrinal Pandey <mrinalmni@gmail.com>
Fri, 24 Jul 2020 13:14:03 +0000 (18:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 15:05:38 +0000 (17:05 +0200)
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>
drivers/android/binder.c

index 2123655..f936530 100644 (file)
@@ -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);