[dpdk-dev] [PATCH v4 1/2] eal: add uevent monitor for hot plug

Stephen Hemminger stephen at networkplumber.org
Sun Sep 3 18:10:04 CEST 2017


On Sun,  3 Sep 2017 23:49:44 +0800
Jeff Guo <jia.guo at intel.com> wrote:

> +int
> +rte_eal_uev_fd_new(void)
> +{
> +
> +	int netlink_fd = -1;
> +
> +	netlink_fd = socket(PF

Please don't use the "initialize everything" style of programming.

Gcc has good detection and warning about uninitalized variables, and this style
defeats that.


More information about the dev mailing list