]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: remove unnecessary assert
authorKarel Zak <kzak@redhat.com>
Tue, 15 Mar 2016 10:38:01 +0000 (11:38 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Mar 2016 10:38:01 +0000 (11:38 +0100)
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818252
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/swapon.c

index 914e69ad4b94418ffaa89c131c14f00ee169d697..48ec5eaac6a499916faf521e9b942ea127a6f3fa 100644 (file)
@@ -649,9 +649,6 @@ static int parse_options(struct swapon_ctl *ctl)
        char *arg = NULL;
 
        assert(ctl->options);
-       assert(ctl->priority);
-       assert(ctl->discard);
-       assert(ctl->no_fail);
 
        if (mnt_optstr_get_option(ctl->options, "nofail", NULL, 0) == 0)
                ctl->no_fail = 1;