summaryrefslogtreecommitdiffstats
path: root/drivers/base/power/main.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2008-02-20 02:01:41 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-22 00:27:08 +0100
commitec5a42465abc585a7f8117be5eecc361490e48ce (patch)
treec7ee96e891378b348171bea39210e50cbe18366b /drivers/base/power/main.c
parentUIO: fix Greg's stupid changes (diff)
downloadlinux-ec5a42465abc585a7f8117be5eecc361490e48ce.tar.xz
linux-ec5a42465abc585a7f8117be5eecc361490e48ce.zip
PM: Remove unbalanced mutex_unlock() from dpm_resume()
Remove an unnecessary unlocking of dpm_list_mtx in the error path in drivers/base/power/main.c:dpm_suspend() . Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/power/main.c')
-rw-r--r--drivers/base/power/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index d6095608465a..cea5ed3919cd 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -479,7 +479,6 @@ static int dpm_suspend(pm_message_t state)
mutex_lock(&dpm_list_mtx);
if (list_empty(&dev->power.entry))
list_add(&dev->power.entry, &dpm_locked);
- mutex_unlock(&dpm_list_mtx);
break;
}
mutex_lock(&dpm_list_mtx);