diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-02-11 16:40:23 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-02-13 10:26:13 -0500 |
commit | 6f585f750d792652f33b6e85b1ee205be4b5e572 (patch) | |
tree | cc4f8472cecc86e7c2102c3f97702024f42e6bb5 | |
parent | 6c83b4818dd65eb17e633b6b629a81da7bed90b3 (diff) |
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>
-rw-r--r-- | kernel/power/power.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index 21724eee5206..398d42b48e9e 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -234,16 +234,14 @@ static inline int suspend_freeze_processes(void) | |||
234 | int error; | 234 | int error; |
235 | 235 | ||
236 | error = freeze_processes(); | 236 | error = freeze_processes(); |
237 | |||
238 | /* | 237 | /* |
239 | * freeze_processes() automatically thaws every task if freezing | 238 | * freeze_processes() automatically thaws every task if freezing |
240 | * fails. So we need not do anything extra upon error. | 239 | * fails. So we need not do anything extra upon error. |
241 | */ | 240 | */ |
242 | if (error) | 241 | if (error) |
243 | goto Finish; | 242 | return error; |
244 | 243 | ||
245 | error = freeze_kernel_threads(); | 244 | error = freeze_kernel_threads(); |
246 | |||
247 | /* | 245 | /* |
248 | * freeze_kernel_threads() thaws only kernel threads upon freezing | 246 | * freeze_kernel_threads() thaws only kernel threads upon freezing |
249 | * failure. So we have to thaw the userspace tasks ourselves. | 247 | * failure. So we have to thaw the userspace tasks ourselves. |
@@ -251,7 +249,6 @@ static inline int suspend_freeze_processes(void) | |||
251 | if (error) | 249 | if (error) |
252 | thaw_processes(); | 250 | thaw_processes(); |
253 | 251 | ||
254 | Finish: | ||
255 | return error; | 252 | return error; |
256 | } | 253 | } |
257 | 254 | ||