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:
Родитель
78a650dc19
Коммит
423e118c0b
|
@ -242,13 +242,17 @@ static int bh_thread_function(void *arg)
|
|||
|
||||
t = timeout = 0;
|
||||
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");
|
||||
|
||||
if (timeout > 0) {
|
||||
/* Convert t in ms to jiffies */
|
||||
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) ||
|
||||
kthread_should_stop(),
|
||||
t);
|
||||
|
@ -260,7 +264,8 @@ static int bh_thread_function(void *arg)
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -374,16 +379,18 @@ CsrResult unifi_run_bh(void *ospriv)
|
|||
|
||||
/*
|
||||
* 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) {
|
||||
unifi_trace(priv, UDBG3, "unifi_run_bh: discard message.\n");
|
||||
/*
|
||||
* Do not try to acknowledge a pending interrupt here.
|
||||
* This function is called by unifi_send_signal() which in turn can be
|
||||
* running in an atomic or 'disabled irq' level if a signal is sent
|
||||
* from a workqueue task (i.e multicass addresses set).
|
||||
* We can not hold the SDIO lock because it might sleep.
|
||||
* This function is called by unifi_send_signal()
|
||||
* which in turn can be running in an atomic or 'disabled irq'
|
||||
* level if a signal is sent from a workqueue task
|
||||
* (i.e multicass addresses set). We can not hold the SDIO lock
|
||||
* because it might sleep.
|
||||
*/
|
||||
return CSR_RESULT_FAILURE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче