From: Akinobu Mita Date: Mon, 22 Sep 2008 20:57:41 +0000 (-0700) Subject: ibmasr: remove unnecessary spin_unlock() X-Git-Tag: v2.6.27-rc8~45 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=683f40d7e7eee06811db43cb4c45349eab0d539e;p=linux-2.6-omap-h63xx.git 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 Cc: Wim Van Sebroeck Acked-by: Andrey Panin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/watchdog/ibmasr.c b/drivers/watchdog/ibmasr.c index b82405cfb4c..89fcefcc851 100644 --- a/drivers/watchdog/ibmasr.c +++ b/drivers/watchdog/ibmasr.c @@ -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)