]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Hibernate: Refactor and simplify hibernation_snapshot() code
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Tue, 22 Nov 2011 22:20:31 +0000 (23:20 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 22 Nov 2011 22:20:31 +0000 (23:20 +0100)
commitee000ac416c5d713566c07dd14272280e6aa3ece
tree743d61dd9c40345378fe3b18f820480496c30b31
parent3e8a3efcbdcd9ce499bba3709ef8ed14ce9f0792
PM / Hibernate: Refactor and simplify hibernation_snapshot() code

The goto statements in hibernation_snapshot() are a bit complex.
Refactor the code to remove some of them, thereby simplifying the
implementation.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/hibernate.c