summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-02-11 22:40:23 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2012-02-13 16:26:13 +0100
commit6f585f750d792652f33b6e85b1ee205be4b5e572 (patch)
treecc4f8472cecc86e7c2102c3f97702024f42e6bb5 /kernel/power
parent6c83b4818dd65eb17e633b6b629a81da7bed90b3 (diff)
downloadop-kernel-dev-6f585f750d792652f33b6e85b1ee205be4b5e572.zip
op-kernel-dev-6f585f750d792652f33b6e85b1ee205be4b5e572.tar.gz
PM / Sleep: Remove unnecessary label from suspend_freeze_processes()
The Finish label in suspend_freeze_processes() is in fact unnecessary and makes the function look more complicated than it really is, so remove that label (along with a few empty lines). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/power.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h
index 21724ee..398d42b 100644
--- a/kernel/power/power.h
+++ b/kernel/power/power.h
@@ -234,16 +234,14 @@ static inline int suspend_freeze_processes(void)
int error;
error = freeze_processes();
-
/*
* freeze_processes() automatically thaws every task if freezing
* fails. So we need not do anything extra upon error.
*/
if (error)
- goto Finish;
+ return error;
error = freeze_kernel_threads();
-
/*
* freeze_kernel_threads() thaws only kernel threads upon freezing
* failure. So we have to thaw the userspace tasks ourselves.
@@ -251,7 +249,6 @@ static inline int suspend_freeze_processes(void)
if (error)
thaw_processes();
- Finish:
return error;
}
OpenPOWER on IntegriCloud