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

Commit 02651d20 authored by Mark Asselstine's avatar Mark Asselstine Committed by David S. Miller
Browse files

hamradio: Remove unneeded and deprecated cli()/sti() calls in dmascc.c



These cli()/sti() calls are made in start_timer() and are therefor
redundant since the register_lock is now used to protect register
io from within scc_isr() and write_scc() (where all calls to
start_timer() originate).

Signed-off-by: default avatarMark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 92998dd4
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1083,15 +1083,12 @@ static void start_timer(struct scc_priv *priv, int t, int r15)
	if (t == 0) {
		tm_isr(priv);
	} else if (t > 0) {
		save_flags(flags);
		cli();
		outb(t & 0xFF, priv->tmr_cnt);
		outb((t >> 8) & 0xFF, priv->tmr_cnt);
		if (priv->type != TYPE_TWIN) {
			write_scc(priv, R15, r15 | CTSIE);
			priv->rr0 |= CTS;
		}
		restore_flags(flags);
	}
}