* [RESEND PATCH] staging: android: Clean up binder_send_failed_reply
@ 2014-07-13 14:49 Lucas Tanure
2014-07-13 16:30 ` Greg Kroah-Hartman
2014-07-13 19:07 ` Greg Kroah-Hartman
0 siblings, 2 replies; 6+ messages in thread
From: Lucas Tanure @ 2014-07-13 14:49 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 | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c
index 14714a6..67c9847 100644
--- a/drivers/staging/android/binder.c
+++ b/drivers/staging/android/binder.c
@@ -1210,24 +1210,23 @@ static void binder_send_failed_reply(struct binder_transaction *t,
target_thread->return_error);
}
return;
- } else {
- struct binder_transaction *next = t->from_parent;
+ }
+ struct binder_transaction *next = t->from_parent;
- binder_debug(BINDER_DEBUG_FAILED_TRANSACTION,
- "send failed reply for transaction %d, target dead\n",
- t->debug_id);
+ binder_debug(BINDER_DEBUG_FAILED_TRANSACTION,
+ "send failed reply for transaction %d, target dead\n",
+ t->debug_id);
- binder_pop_transaction(target_thread, t);
- if (next == NULL) {
- binder_debug(BINDER_DEBUG_DEAD_BINDER,
- "reply failed, no target thread at root\n");
- return;
- }
- t = next;
+ binder_pop_transaction(target_thread, t);
+ if (next == NULL) {
binder_debug(BINDER_DEBUG_DEAD_BINDER,
- "reply failed, no target thread -- retry %d\n",
- t->debug_id);
+ "reply failed, no target thread at root\n");
+ return;
}
+ t = next;
+ binder_debug(BINDER_DEBUG_DEAD_BINDER,
+ "reply failed, no target thread -- retry %d\n",
+ t->debug_id);
}
}
--
2.0.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [RESEND PATCH] staging: android: Clean up binder_send_failed_reply
2014-07-13 14:49 [RESEND PATCH] staging: android: Clean up binder_send_failed_reply Lucas Tanure
@ 2014-07-13 16:30 ` Greg Kroah-Hartman
2014-07-13 16:38 ` Lucas Tanure
2014-07-13 19:07 ` Greg Kroah-Hartman
1 sibling, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2014-07-13 16:30 UTC (permalink / raw)
To: Lucas Tanure; +Cc: Arve Hjønnevåg, devel, linux-kernel
On Sun, Jul 13, 2014 at 11:49:29AM -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 | 27 +++++++++++++--------------
> 1 file changed, 13 insertions(+), 14 deletions(-)
Why the "RESEND"? What was wrong with the first patch? What is
different with this one?
confused,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH] staging: android: Clean up binder_send_failed_reply
2014-07-13 16:30 ` Greg Kroah-Hartman
@ 2014-07-13 16:38 ` Lucas Tanure
2014-07-13 16:44 ` Greg Kroah-Hartman
0 siblings, 1 reply; 6+ messages in thread
From: Lucas Tanure @ 2014-07-13 16:38 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Arve Hjønnevåg, devel, linux-kernel
I missed on trailing whitespace in first patch.
Didn't saw a ERROR: trailing whitespace in the first patch.
Sorry,
Thanks
--
Lucas Tanure
+55 (19) 988176559
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH] staging: android: Clean up binder_send_failed_reply
2014-07-13 16:38 ` Lucas Tanure
@ 2014-07-13 16:44 ` Greg Kroah-Hartman
0 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2014-07-13 16:44 UTC (permalink / raw)
To: Lucas Tanure; +Cc: Arve Hjønnevåg, devel, linux-kernel
On Sun, Jul 13, 2014 at 01:38:45PM -0300, Lucas Tanure wrote:
> I missed on trailing whitespace in first patch.
> Didn't saw a ERROR: trailing whitespace in the first patch.
Ok. Please, always say that this is a 'v2' patch, and what the
difference is between this one, and the previous version, otherwise I
have no idea what to do here.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH] staging: android: Clean up binder_send_failed_reply
2014-07-13 14:49 [RESEND PATCH] staging: android: Clean up binder_send_failed_reply Lucas Tanure
2014-07-13 16:30 ` Greg Kroah-Hartman
@ 2014-07-13 19:07 ` Greg Kroah-Hartman
2014-07-13 19:48 ` Lucas Tanure
1 sibling, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2014-07-13 19:07 UTC (permalink / raw)
To: Lucas Tanure; +Cc: Arve Hjønnevåg, devel, linux-kernel
On Sun, Jul 13, 2014 at 11:49:29AM -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 | 27 +++++++++++++--------------
> 1 file changed, 13 insertions(+), 14 deletions(-)
You didn't compile this patch :(
Or if you did, you ignored the fact that it now adds a warning to the
kernel build process, which is not allowed. Please fix this up and
resend.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH] staging: android: Clean up binder_send_failed_reply
2014-07-13 19:07 ` Greg Kroah-Hartman
@ 2014-07-13 19:48 ` Lucas Tanure
0 siblings, 0 replies; 6+ messages in thread
From: Lucas Tanure @ 2014-07-13 19:48 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Arve Hjønnevåg, devel, linux-kernel
Sorry,
I didn't know. I will fix.
Thanks
--
Lucas Tanure
+55 (19) 988176559
On Sun, Jul 13, 2014 at 4:07 PM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Sun, Jul 13, 2014 at 11:49:29AM -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 | 27 +++++++++++++--------------
>> 1 file changed, 13 insertions(+), 14 deletions(-)
>
> You didn't compile this patch :(
>
> Or if you did, you ignored the fact that it now adds a warning to the
> kernel build process, which is not allowed. Please fix this up and
> resend.
>
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-07-13 19:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-13 14:49 [RESEND PATCH] staging: android: Clean up binder_send_failed_reply Lucas Tanure
2014-07-13 16:30 ` Greg Kroah-Hartman
2014-07-13 16:38 ` Lucas Tanure
2014-07-13 16:44 ` Greg Kroah-Hartman
2014-07-13 19:07 ` Greg Kroah-Hartman
2014-07-13 19:48 ` Lucas Tanure
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox