Add the missing brackets to an if statement so that FdoS4ToS3() is not
always called in __FdoSetSystemPowerUp().
Signed-off-by: Troy Crosley <troycrosley@gmail.com>
Reviewed-by: Owen Smith <owen.smith@citrix.com>
goto done;
if (SystemState < PowerSystemHibernate &&
- __FdoGetSystemPowerState(Fdo) >= PowerSystemHibernate)
+ __FdoGetSystemPowerState(Fdo) >= PowerSystemHibernate) {
__FdoSetSystemPowerState(Fdo, PowerSystemHibernate);
FdoS4ToS3(Fdo);
+ }
Info("%s -> %s\n",
PowerSystemStateName(__FdoGetSystemPowerState(Fdo)),