summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon.c
diff options
context:
space:
mode:
authorKarel Zak2016-03-15 11:38:01 +0100
committerKarel Zak2016-03-15 11:38:01 +0100
commit12f5cbe15940bfb94d31a1b898084aa5f0e5fa10 (patch)
tree9b17e8742e0c38acde40ffd73ccf2ac5f6e70e1e /sys-utils/swapon.c
parenttravis: let's ignore apt-get return code (diff)
downloadkernel-qcow2-util-linux-12f5cbe15940bfb94d31a1b898084aa5f0e5fa10.tar.gz
kernel-qcow2-util-linux-12f5cbe15940bfb94d31a1b898084aa5f0e5fa10.tar.xz
kernel-qcow2-util-linux-12f5cbe15940bfb94d31a1b898084aa5f0e5fa10.zip
swapon: remove unnecessary assert
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818252 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/swapon.c')
-rw-r--r--sys-utils/swapon.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index 914e69ad4..48ec5eaac 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -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;