Commit 395262a9 authored by Dmitry Voytik's avatar Dmitry Voytik Committed by Greg Kroah-Hartman

staging: binder: fix coding style issues

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: default avatarDmitry Voytik <voytikd@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0232a42c
...@@ -2199,12 +2199,16 @@ static int binder_thread_read(struct binder_proc *proc, ...@@ -2199,12 +2199,16 @@ static int binder_thread_read(struct binder_proc *proc,
struct binder_work *w; struct binder_work *w;
struct binder_transaction *t = NULL; struct binder_transaction *t = NULL;
if (!list_empty(&thread->todo)) if (!list_empty(&thread->todo)) {
w = list_first_entry(&thread->todo, struct binder_work, entry); w = list_first_entry(&thread->todo, struct binder_work,
else if (!list_empty(&proc->todo) && wait_for_proc_work) entry);
w = list_first_entry(&proc->todo, struct binder_work, entry); } else if (!list_empty(&proc->todo) && wait_for_proc_work) {
else { w = list_first_entry(&proc->todo, struct binder_work,
if (ptr - buffer == 4 && !(thread->looper & BINDER_LOOPER_STATE_NEED_RETURN)) /* no data added */ entry);
} else {
/* no data added */
if (ptr - buffer == 4 &&
!(thread->looper & BINDER_LOOPER_STATE_NEED_RETURN))
goto retry; goto retry;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment