chiark / gitweb /
Prep v231.2: Remove modes and states assertion in do_sleep()
authorSven Eden <yamakuzure@gmx.net>
Wed, 21 Jun 2017 06:49:50 +0000 (08:49 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 21 Jun 2017 06:49:50 +0000 (08:49 +0200)
commit3c4a90354897c8d4b62d55bb50e429b9bb77e8ba
treef668bc2213212b944dc1454fd2a415bb28c885dd
parent7f72c07c5a325307ae00fc6759912e096d2c8c82
Prep v231.2: Remove modes and states assertion in do_sleep()

It is perfectly valid to have NULL modes. The default configuration
for suspend to ram is such a case.
Having NULL states doesn't make any sense other than no suspension is
possible any more. But a user might have set any *State value to an
empty string, so better assume (and assert) nothing here.
src/sleep/sleep.c