Skip to content

Commit

Permalink
staging/csr: fix coding style problems in uf_stop_thread
Browse files Browse the repository at this point in the history
The following warnings and errors were fixed:

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

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: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Aug 14, 2012
1 parent cff9e59 commit f7523ab
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions drivers/staging/csr/bh.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,16 @@ int uf_start_thread(unifi_priv_t *priv,
*/
void uf_stop_thread(unifi_priv_t *priv, struct uf_thread *thread)
{
if (!thread->thread_task) {
unifi_notice(priv, "%s thread is already stopped\n", thread->name);
return;
}
if (!thread->thread_task) {
unifi_notice(priv, "%s thread is already stopped\n",
thread->name);
return;
}

unifi_trace(priv, UDBG2, "Stopping %s thread\n", thread->name);
unifi_trace(priv, UDBG2, "Stopping %s thread\n", thread->name);

kthread_stop(thread->thread_task);
thread->thread_task = NULL;
kthread_stop(thread->thread_task);
thread->thread_task = NULL;

} /* uf_stop_thread() */

Expand Down

0 comments on commit f7523ab

Please sign in to comment.