Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 423e118c authored by Davis Abubakr-Sadik Nii Nai's avatar Davis Abubakr-Sadik Nii Nai Committed by Greg Kroah-Hartman
Browse files

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: default avatarDavis Abubakr-Sadik Nii Nai <dwa2pac@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 78a650dc
Loading
Loading
Loading
Loading
+110 −103
Original line number Diff line number Diff line
@@ -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;
	}