[dpdk-dev] [PATCH v3 2/2] eal/linux: Add support for handling built-in kernel modules

Stephen Hemminger stephen at networkplumber.org
Mon Dec 7 21:55:24 CET 2015


On Mon, 7 Dec 2015 19:36:05 +0100
Kamil Rytarowski <Kamil.Rytarowski at caviumnetworks.com> wrote:

> +	/* Check if there is sysfs mounted */
> +	if (stat("/sys/module", &st) != 0) {
> +		RTE_LOG(DEBUG, EAL, "Open /sys/module failed: %s\n",
> +			strerror(errno));
>  		return -1;
>  	}

This check is useless.
If /sys/module does not exist then /sys/module/XXX won't exist either.


More information about the dev mailing list