From: Haifeng Gao Date: Mon, 23 Mar 2015 08:11:39 +0000 (+0800) Subject: eal: remove argument need of --create_uio_dev option X-Git-Tag: spdx-start~9388 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=91a8743eb9bcbf83011bb8b6073cfc0ac11a8c85;p=dpdk.git eal: remove argument need of --create_uio_dev option eal options OPT_CREATE_UIO_DEV does not need argument so set it to zero. It needs to reset create_uio_dev explicitly. Fixes: f7f97c16048e ("pci: add option --create-uio-dev to run without hotplug") Signed-off-by: Haifeng Gao Acked-by: Olivier Matz --- diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 4319549a59..8fcb1abeca 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -70,7 +70,7 @@ eal_short_options[] = const struct option eal_long_options[] = { {OPT_BASE_VIRTADDR, 1, NULL, OPT_BASE_VIRTADDR_NUM }, - {OPT_CREATE_UIO_DEV, 1, NULL, OPT_CREATE_UIO_DEV_NUM }, + {OPT_CREATE_UIO_DEV, 0, NULL, OPT_CREATE_UIO_DEV_NUM }, {OPT_FILE_PREFIX, 1, NULL, OPT_FILE_PREFIX_NUM }, {OPT_HELP, 0, NULL, OPT_HELP_NUM }, {OPT_HUGE_DIR, 1, NULL, OPT_HUGE_DIR_NUM }, @@ -131,6 +131,7 @@ eal_reset_internal_config(struct internal_config *internal_cfg) internal_cfg->no_hpet = 1; #endif internal_cfg->vmware_tsc_map = 0; + internal_cfg->create_uio_dev = 0; } /*