summaryrefslogtreecommitdiff
path: root/kernel/rtmutex.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-10-28 21:55:33 (GMT)
committerRafael J. Wysocki <rjw@sisk.pl>2009-11-03 10:02:43 (GMT)
commit4ff277f9e42fa16314045bd124a61519286094c0 (patch)
tree59c00800cead3926938a68145dcddba4b9ad160f /kernel/rtmutex.c
parent76b57e613f6006ff525a17876c89326d127cadc9 (diff)
downloadlinux-fsl-qoriq-4ff277f9e42fa16314045bd124a61519286094c0.tar.xz
PM / Hibernate: Fix error handling in save_image()
There are too many retval variables in save_image(). Thus error return value from snapshot_read_next() may be ignored and only part of the snapshot (successfully) written. Remove 'error' variable, invert the condition in the do-while loop and convert the loop to use only 'ret' variable. Switch the rest of the function to consider only 'ret'. Also make sure we end printed line by \n if an error occurs. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/rtmutex.c')
0 files changed, 0 insertions, 0 deletions