mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
ibmasr: remove unnecessary spin_unlock()
__asr_toggle() is always called with asr_lock held. But there is unnecessary spin_unlock() call in __asr_toggle(). Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Wim Van Sebroeck <wim@iguana.be> Acked-by: Andrey Panin <pazke@donpac.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a304edb489
commit
683f40d7e7
@ -85,7 +85,6 @@ static void __asr_toggle(void)
|
||||
|
||||
outb(reg & ~asr_toggle_mask, asr_write_addr);
|
||||
reg = inb(asr_read_addr);
|
||||
spin_unlock(&asr_lock);
|
||||
}
|
||||
|
||||
static void asr_toggle(void)
|
||||
|
Loading…
Reference in New Issue
Block a user