Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f585f75 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

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: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
parent 6c83b481
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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;
}