All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH] staging: android: Clean up binder_buffer_size()
@ 2014-07-13  0:50 Lucas Tanure
  2014-07-13  1:44 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas Tanure @ 2014-07-13  0:50 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Arve Hjønnevåg, devel, linux-kernel

Kernel coding style. Remove useless else statement after return.

Signed-off-by: Lucas Tanure <tanure@linux.com>
---
 drivers/staging/android/binder.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c
index cfe4bc8..1a0966b 100644
--- a/drivers/staging/android/binder.c
+++ b/drivers/staging/android/binder.c
@@ -451,8 +451,7 @@ 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,
+	return (size_t)list_entry(buffer->entry.next,
 			struct binder_buffer, entry) - (size_t)buffer->data;
 }
 
-- 
2.0.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [RESEND PATCH] staging: android: Clean up binder_buffer_size()
  2014-07-13  0:50 [RESEND PATCH] staging: android: Clean up binder_buffer_size() Lucas Tanure
@ 2014-07-13  1:44 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2014-07-13  1:44 UTC (permalink / raw)
  To: Lucas Tanure; +Cc: Arve Hjønnevåg, devel, linux-kernel

On Sat, Jul 12, 2014 at 09:50:09PM -0300, Lucas Tanure wrote:
> Kernel coding style. Remove useless else statement after return.
> 
> Signed-off-by: Lucas Tanure <tanure@linux.com>
> ---
>  drivers/staging/android/binder.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

What tree are you making this patch against?  Someone already has this
patch accepted into my staging-next branch, which means that linux-next
also should show this change in it.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-13  1:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-13  0:50 [RESEND PATCH] staging: android: Clean up binder_buffer_size() Lucas Tanure
2014-07-13  1:44 ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.