drivers: android: Remove the use of else after return
authorMrinal Pandey <mrinalmni@gmail.com>
Fri, 24 Jul 2020 13:13:48 +0000 (18:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 15:05:38 +0000 (17:05 +0200)
Remove the unnecessary else branch after return statement as suggested by
checkpatch.

Signed-off-by: Mrinal Pandey <mrinalmni@gmail.com>
Link: https://lore.kernel.org/r/20200724131348.haz4ocxcferdcsgn@mrinalpandey
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c

index 5b310ee..2123655 100644 (file)
@@ -1969,9 +1969,8 @@ static void binder_send_failed_reply(struct binder_transaction *t,
                        binder_thread_dec_tmpref(target_thread);
                        binder_free_transaction(t);
                        return;
-               } else {
-                       __release(&target_thread->proc->inner_lock);
                }
+               __release(&target_thread->proc->inner_lock);
                next = t->from_parent;
 
                binder_debug(BINDER_DEBUG_FAILED_TRANSACTION,