From 3c4a90354897c8d4b62d55bb50e429b9bb77e8ba Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Wed, 21 Jun 2017 08:49:50 +0200 Subject: 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 | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/sleep') 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: #else int do_sleep(const char *verb, char **modes, char **states) { assert(verb); - assert(modes); - assert(states); - arg_verb = (char*)verb; return execute(modes, states); } -- cgit v1.2.3