Commit 19449593 authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai
Browse files

sound: sys_timer: indent poll_def_tmr() correctly



The indenting here was really whacky and not consistent from one line to
the next.  I also reverse the "if (opened)" and "if (tmr_running)" tests
so that I could remove two indent levels.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 72f770c6
Loading
Loading
Loading
Loading
+15 −20
Original line number Diff line number Diff line
@@ -50,30 +50,25 @@ tmr2ticks(int tmr_value)
static void
poll_def_tmr(unsigned long dummy)
{

	if (opened)
	  {

		  {
	if (!opened)
		return;
	def_tmr.expires = (1) + jiffies;
	add_timer(&def_tmr);
		  }

		  if (tmr_running)
		    {
	if (!tmr_running)
		return;

	spin_lock(&lock);
	tmr_ctr++;
	curr_ticks = ticks_offs + tmr2ticks(tmr_ctr);

			    if (curr_ticks >= next_event_time)
			      {
	if (curr_ticks >= next_event_time) {
		next_event_time = (unsigned long) -1;
		sequencer_timer(0);
	}

	spin_unlock(&lock);
}
	  }
}

static void
tmr_reset(void)