Staging: Android: removed an unnecessary else statement
authorKarthik Nayak <karthik.188@gmail.com>
Sat, 21 Jun 2014 14:53:16 +0000 (20:23 +0530)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:10:04 +0000 (18:10 +0200)
As per checkpatch warning, removed an unnecessary else statement
proceeding an if statement with a return.

Change-Id: I718d9ece6c8bac128c10ecaf904721410d701b60
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: a82ef7179a96b30c86258f4744c83cce9bfae441
Git-repo: https://android.googlesource.com/kernel/common.git
Signed-off-by: Ian Maund <imaund@codeaurora.org>
drivers/staging/android/binder.c

index 7010a416aa568aac88ae3c1528f580505261cfd3..46ea24f9d635a788bbbb57e0530cfce26ac2bd6f 100644 (file)
@@ -455,9 +455,8 @@ static size_t binder_buffer_size(struct binder_proc *proc,
 {
        if (list_is_last(&buffer->entry, &proc->buffers))
                return proc->buffer + proc->buffer_size - (void *)buffer->data;
-       else
-               return (size_t)list_entry(buffer->entry.next,
-                       struct binder_buffer, entry) - (size_t)buffer->data;
+       return (size_t)list_entry(buffer->entry.next,
+                         struct binder_buffer, entry) - (size_t)buffer->data;
 }
 
 static void binder_insert_free_buffer(struct binder_proc *proc,