[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1208807350-10618-1-git-send-email-mark.asselstine@windriver.com>
Date: Mon, 21 Apr 2008 15:49:10 -0400
From: Mark Asselstine <mark.asselstine@...driver.com>
To: kernel-janitors@...r.kernel.org
Cc: netdev@...r.kernel.org, asselsm@...il.com, klaus.kudielka@...e.org,
linux-hams@...r.kernel.org,
Mark Asselstine <mark.asselstine@...driver.com>
Subject: [PATCH] Remove unneeded and deprecated cli()/sti() calls.
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 <mark.asselstine@...driver.com>
---
drivers/net/hamradio/dmascc.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/net/hamradio/dmascc.c b/drivers/net/hamradio/dmascc.c
index e04bf99..0b94833 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);
}
}
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists