From: Karel Zak Date: Tue, 15 Mar 2016 10:38:01 +0000 (+0100) Subject: swapon: remove unnecessary assert X-Git-Tag: v2.28-rc2~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12f5cbe15940bfb94d31a1b898084aa5f0e5fa10;p=thirdparty%2Futil-linux.git swapon: remove unnecessary assert Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818252 Signed-off-by: Karel Zak --- diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 914e69ad4b..48ec5eaac6 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;