]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
libkmod: Fix getting param with no value from kcmdline
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 14 Aug 2013 01:04:46 +0000 (22:04 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 14 Aug 2013 01:04:46 +0000 (22:04 -0300)
libkmod/libkmod-config.c

index cb4cf61e92ce71d950536f633d0b92640226b3f6..24978c14d082cc2a05a1689180f923af0f135bbc 100644 (file)
@@ -518,7 +518,7 @@ static void kmod_config_free_softdep(struct kmod_config *config,
 static void kcmdline_parse_result(struct kmod_config *config, char *modname,
                                                char *param, char *value)
 {
-       if (modname == NULL || param == NULL || value == NULL)
+       if (modname == NULL || param == NULL)
                return;
 
        DBG(config->ctx, "%s %s\n", modname, param);