kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] tty: amiserial.c: remove a double irq restore
@ 2016-08-04  5:34 Dan Carpenter
  2016-08-04  6:24 ` Jiri Slaby
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2016-08-04  5:34 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Jiri Slaby, linux-kernel, kernel-janitors

We already called "local_irq_restore(flags);" so this isn't needed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c
index 208f573..2f33cf1 100644
--- a/drivers/tty/amiserial.c
+++ b/drivers/tty/amiserial.c
@@ -880,7 +880,6 @@ static int rs_write(struct tty_struct * tty, const unsigned char *buf, int count
 		/* set a pending Tx Interrupt, transmitter should restart now */
 		custom.intreq = IF_SETCLR | IF_TBE;
 		mb();
-		local_irq_restore(flags);
 	}
 	return ret;
 }

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-04 10:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-04  5:34 [patch] tty: amiserial.c: remove a double irq restore Dan Carpenter
2016-08-04  6:24 ` Jiri Slaby
2016-08-04 10:11   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).