提交 f7523ab6 编写于 作者: D Devendra Naga 提交者: Greg Kroah-Hartman

staging/csr: fix coding style problems in uf_stop_thread

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: NDevendra Naga <develkernel412222@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 cff9e59f
...@@ -94,15 +94,16 @@ int uf_start_thread(unifi_priv_t *priv, ...@@ -94,15 +94,16 @@ int uf_start_thread(unifi_priv_t *priv,
*/ */
void uf_stop_thread(unifi_priv_t *priv, struct uf_thread *thread) void uf_stop_thread(unifi_priv_t *priv, struct uf_thread *thread)
{ {
if (!thread->thread_task) { if (!thread->thread_task) {
unifi_notice(priv, "%s thread is already stopped\n", thread->name); unifi_notice(priv, "%s thread is already stopped\n",
return; 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); kthread_stop(thread->thread_task);
thread->thread_task = NULL; thread->thread_task = NULL;
} /* uf_stop_thread() */ } /* uf_stop_thread() */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册