]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: Android: removed an unnecessary else statement
authorKarthik Nayak <karthik.188@gmail.com>
Sat, 21 Jun 2014 14:53:16 +0000 (20:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:18:58 +0000 (20:18 -0400)
As per checkpatch warning, removed an unnecessary else statement
proceeding an if statement with a return.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/binder.c

index a741da77828aec517d858b1644be4102d2298749..589cfc81f419e7ec8402de91fe9883e09170da4b 100644 (file)
@@ -454,9 +454,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,