[PATCH] CHAR-Amiserial: turn local_save_flags() + local_irq_disable() into local_irq_save()

drivers/char/amiserial.c::rs_write() contains local_irq_disable() after
local_save_flags().  Turn it into local_irq_save().

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Jiri Kosina 2007-02-10 01:46:48 -08:00 committed by Linus Torvalds
parent c70555b051
commit 3abf3beda7
1 changed files with 1 additions and 2 deletions

View File

@ -902,8 +902,7 @@ static int rs_write(struct tty_struct * tty, const unsigned char *buf, int count
if (!info->xmit.buf) if (!info->xmit.buf)
return 0; return 0;
local_save_flags(flags); local_irq_save(flags);
local_irq_disable();
while (1) { while (1) {
c = CIRC_SPACE_TO_END(info->xmit.head, c = CIRC_SPACE_TO_END(info->xmit.head,
info->xmit.tail, info->xmit.tail,