Commit b29687fb authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging/csr: fix coding style problems in uf_wait_for_thread_to_stop

the following fixes:

* fix no space at the start of line
* line over 80 characters
* use tabs instead of spaces at starting of every line

Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: default avatarDevendra Naga <develkernel412222@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f7523ab6
...@@ -122,23 +122,24 @@ void uf_stop_thread(unifi_priv_t *priv, struct uf_thread *thread) ...@@ -122,23 +122,24 @@ void uf_stop_thread(unifi_priv_t *priv, struct uf_thread *thread)
* *
* --------------------------------------------------------------------------- * ---------------------------------------------------------------------------
*/ */
void void
uf_wait_for_thread_to_stop(unifi_priv_t *priv, struct uf_thread *thread) uf_wait_for_thread_to_stop(unifi_priv_t *priv, struct uf_thread *thread)
{ {
/* /*
* kthread_stop() cannot handle the thread exiting while * kthread_stop() cannot handle the thread exiting while
* kthread_should_stop() is false, so sleep until kthread_stop() * kthread_should_stop() is false, so sleep until kthread_stop()
* wakes us up. * wakes us up
*/ */
unifi_trace(priv, UDBG2, "%s waiting for the stop signal.\n", thread->name); unifi_trace(priv, UDBG2, "%s waiting for the stop signal.\n",
set_current_state(TASK_INTERRUPTIBLE); thread->name);
if (!kthread_should_stop()) { set_current_state(TASK_INTERRUPTIBLE);
unifi_trace(priv, UDBG2, "%s schedule....\n", thread->name); if (!kthread_should_stop()) {
schedule(); unifi_trace(priv, UDBG2, "%s schedule....\n", thread->name);
} schedule();
}
thread->thread_task = NULL; thread->thread_task = NULL;
unifi_trace(priv, UDBG2, "%s exiting....\n", thread->name); unifi_trace(priv, UDBG2, "%s exiting....\n", thread->name);
} /* uf_wait_for_thread_to_stop() */ } /* uf_wait_for_thread_to_stop() */
......
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