path: root/src/sleep
diff options
authorSven Eden <>2017-06-21 08:49:50 +0200
committerSven Eden <>2017-06-21 08:49:50 +0200
commit3c4a90354897c8d4b62d55bb50e429b9bb77e8ba (patch)
treef668bc2213212b944dc1454fd2a415bb28c885dd /src/sleep
parent7f72c07c5a325307ae00fc6759912e096d2c8c82 (diff)
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.
Diffstat (limited to 'src/sleep')
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index a2e8e6035..dc1d55d8b 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -220,9 +220,6 @@ finish:
int do_sleep(const char *verb, char **modes, char **states) {
- assert(modes);
- assert(states);
arg_verb = (char*)verb;
return execute(modes, states);