PM / Hibernate: Replace unintuitive 'if' condition in kernel/power/user.c with 'else'
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Fri, 2 Dec 2011 23:20:30 +0000 (00:20 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 6 Dec 2011 21:13:44 +0000 (22:13 +0100)
commite5b16746f0f2d6883c226af52d90904ce0f7eee8
tree89aa15350ccdef11fec16be252850627167d7167
parent2e8e89e392c62636ee33532358607baef2863173
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>
kernel/power/user.c