From: Mark Asselstine Date: Mon, 21 Apr 2008 21:44:16 +0000 (-0700) Subject: hamradio: Remove unneeded and deprecated cli()/sti() calls in dmascc.c X-Git-Tag: v2.6.26-rc1~1095^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=02651d20a3f90dab8920dad00dec8f62f2b6a7ea;p=linux-2.6-omap-h63xx.git 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: Mark Asselstine Signed-off-by: David S. Miller --- diff --git a/drivers/net/hamradio/dmascc.c b/drivers/net/hamradio/dmascc.c index e04bf992644..0b94833e23f 100644 --- a/drivers/net/hamradio/dmascc.c +++ b/drivers/net/hamradio/dmascc.c @@ -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); } }