diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2014-06-21 18:53:16 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-27 04:18:58 +0400 |
commit | 7873311aed5436bad100ff7ed98f159e6c8c17a7 (patch) | |
tree | 4484e1996e4a7a145261e7e160e0b9301ec5e257 /drivers/staging/android | |
parent | d93b88eb7628fc70f7e0feef640132bb484b70ef (diff) | |
download | linux-7873311aed5436bad100ff7ed98f159e6c8c17a7.tar.xz |
Staging: Android: removed an unnecessary else statement
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>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r-- | drivers/staging/android/binder.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index a741da77828a..589cfc81f419 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c @@ -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, |