diff options
author | Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> | 2011-12-02 18:20:30 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-12-06 16:13:44 -0500 |
commit | e5b16746f0f2d6883c226af52d90904ce0f7eee8 (patch) | |
tree | 89aa15350ccdef11fec16be252850627167d7167 | |
parent | 2e8e89e392c62636ee33532358607baef2863173 (diff) |
PM / Hibernate: Replace unintuitive 'if' condition in kernel/power/user.c with 'else'
In the snapshot_ioctl() function, under SNAPSHOT_FREEZE, the code below
freeze_processes() is a bit unintuitive. Improve it by replacing the
second 'if' condition with an 'else' clause.
Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
-rw-r--r-- | kernel/power/user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/user.c b/kernel/power/user.c index c202e2e1a2d5..06ea33df8560 100644 --- a/kernel/power/user.c +++ b/kernel/power/user.c | |||
@@ -259,7 +259,7 @@ static long snapshot_ioctl(struct file *filp, unsigned int cmd, | |||
259 | error = freeze_processes(); | 259 | error = freeze_processes(); |
260 | if (error) | 260 | if (error) |
261 | usermodehelper_enable(); | 261 | usermodehelper_enable(); |
262 | if (!error) | 262 | else |
263 | data->frozen = 1; | 263 | data->frozen = 1; |
264 | break; | 264 | break; |
265 | 265 | ||