Staging: csr: fix indentation style issue in bh.c

This is a patch to the bh.c file that fixes up all indentation errors
found the checkpatch.pl tool. Two lines beyond 80 characters are left
alone to improve readability

Signed-off-by: Davis Abubakr-Sadik Nii Nai <dwa2pac@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Davis Abubakr-Sadik Nii Nai 2013-05-28 17:52:06 +00:00 коммит произвёл Greg Kroah-Hartman
Родитель 78a650dc19
Коммит 423e118c0b
1 изменённых файлов: 99 добавлений и 92 удалений

Просмотреть файл

@ -242,13 +242,17 @@ static int bh_thread_function(void *arg)
t = timeout = 0; t = timeout = 0;
while (!kthread_should_stop()) { while (!kthread_should_stop()) {
/* wait until an error occurs, or we need to process something. */ /*
* wait until an error occurs,
* or we need to process something.
*/
unifi_trace(priv, UDBG3, "bh_thread goes to sleep.\n"); unifi_trace(priv, UDBG3, "bh_thread goes to sleep.\n");
if (timeout > 0) { if (timeout > 0) {
/* Convert t in ms to jiffies */ /* Convert t in ms to jiffies */
t = msecs_to_jiffies(timeout); t = msecs_to_jiffies(timeout);
ret = wait_event_interruptible_timeout(this_thread->wakeup_q, ret = wait_event_interruptible_timeout(
this_thread->wakeup_q,
(this_thread->wakeup_flag && !this_thread->block_thread) || (this_thread->wakeup_flag && !this_thread->block_thread) ||
kthread_should_stop(), kthread_should_stop(),
t); t);
@ -260,7 +264,8 @@ static int bh_thread_function(void *arg)
} }
if (kthread_should_stop()) { if (kthread_should_stop()) {
unifi_trace(priv, UDBG2, "bh_thread: signalled to exit\n"); unifi_trace(priv, UDBG2,
"bh_thread: signalled to exit\n");
break; break;
} }
@ -374,16 +379,18 @@ CsrResult unifi_run_bh(void *ospriv)
/* /*
* If an error has occurred, we discard silently all messages from the bh * If an error has occurred, we discard silently all messages from the bh
* until the error has been processed and the unifi has been reinitialised. * until the error has been processed and the unifi has been
* reinitialised.
*/ */
if (priv->bh_thread.block_thread == 1) { if (priv->bh_thread.block_thread == 1) {
unifi_trace(priv, UDBG3, "unifi_run_bh: discard message.\n"); unifi_trace(priv, UDBG3, "unifi_run_bh: discard message.\n");
/* /*
* Do not try to acknowledge a pending interrupt here. * Do not try to acknowledge a pending interrupt here.
* This function is called by unifi_send_signal() which in turn can be * This function is called by unifi_send_signal()
* running in an atomic or 'disabled irq' level if a signal is sent * which in turn can be running in an atomic or 'disabled irq'
* from a workqueue task (i.e multicass addresses set). * level if a signal is sent from a workqueue task
* We can not hold the SDIO lock because it might sleep. * (i.e multicass addresses set). We can not hold the SDIO lock
* because it might sleep.
*/ */
return CSR_RESULT_FAILURE; return CSR_RESULT_FAILURE;
} }