mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] staging: binder: fix coding style issues
@ 2014-09-08 13:37 Dmitry Voytik
  2014-09-08 13:58 ` Joe Perches
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Voytik @ 2014-09-08 13:37 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Brian Swetland, Arve Hjønnevåg, linux-kernel, Dmitry Voytik

Fix coding style issues:
* put braces in all if-else branches;
* limit the length of changed lines to 80 columns.
checkpatch.pl warning count reduces by 3.

Signed-off-by: Dmitry Voytik <voytikd@gmail.com>
---
 drivers/staging/android/binder.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c
index 4f34dc0..b7d6b3a 100644
--- a/drivers/staging/android/binder.c
+++ b/drivers/staging/android/binder.c
@@ -2198,12 +2198,16 @@ retry:
 		struct binder_work *w;
 		struct binder_transaction *t = NULL;
 
-		if (!list_empty(&thread->todo))
-			w = list_first_entry(&thread->todo, struct binder_work, entry);
-		else if (!list_empty(&proc->todo) && wait_for_proc_work)
-			w = list_first_entry(&proc->todo, struct binder_work, entry);
-		else {
-			if (ptr - buffer == 4 && !(thread->looper & BINDER_LOOPER_STATE_NEED_RETURN)) /* no data added */
+		if (!list_empty(&thread->todo)) {
+			w = list_first_entry(&thread->todo, struct binder_work,
+						entry);
+		} else if (!list_empty(&proc->todo) && wait_for_proc_work) {
+			w = list_first_entry(&proc->todo, struct binder_work,
+						entry);
+		} else {
+			/* no data added */
+			if (ptr - buffer == 4 && !(thread->looper &
+					BINDER_LOOPER_STATE_NEED_RETURN))
 				goto retry;
 			break;
 		}
-- 
1.9.1


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

end of thread, other threads:[~2014-09-08 18:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-08 13:37 [PATCH] staging: binder: fix coding style issues Dmitry Voytik
2014-09-08 13:58 ` Joe Perches
2014-09-08 14:16   ` Dmitry Voytik
2014-09-08 15:41     ` Joe Perches
2014-09-08 18:45       ` Dmitry Voytik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome