Skip to content

Commit

Permalink
[WATCHDOG] ibmasr: remove unnecessary spin_unlock()
Browse files Browse the repository at this point in the history
__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>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Acked-by: Andrey Panin <pazke@donpac.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Akinobu Mita authored and Wim Van Sebroeck committed Sep 23, 2008
1 parent cec5eb7 commit 7f605ac
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/watchdog/ibmasr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f605ac

Please sign in to comment.