PM / Suspend: Fix bug in suspend statistics update
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Sat, 19 Nov 2011 13:37:57 +0000 (14:37 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 19 Nov 2011 13:37:57 +0000 (14:37 +0100)
commit501a708f18ef911328ffd39f39738b8a7862aa8e
treef3adbf5979f9e714291cec5c2a893edbca16ba26
parentaa9a7b11821e883a7b93ecce190881e0ea48648b
PM / Suspend: Fix bug in suspend statistics update

After commit 2a77c46de1e3dace73745015635ebbc648eca69c
(PM / Suspend: Add statistics debugfs file for suspend to RAM)
a missing pair of braces inside the state_store() function causes even
invalid arguments to suspend to be wrongly treated as failed suspend
attempts. Fix this.

[rjw: Put the hash/subject of the buggy commit into the changelog.]

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