From: Ferruh Yigit Date: Mon, 26 Sep 2016 15:39:21 +0000 (+0100) Subject: kni: uninitialize global variables X-Git-Tag: spdx-start~5598 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fbd71b623f3303debfa4e1aefb89c633b26fe632;p=dpdk.git kni: uninitialize global variables Signed-off-by: Ferruh Yigit --- diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index 113fc20c4f..f051595cfa 100644 --- a/lib/librte_eal/linuxapp/kni/kni_misc.c +++ b/lib/librte_eal/linuxapp/kni/kni_misc.c @@ -81,11 +81,11 @@ static struct miscdevice kni_misc = { }; /* loopback mode */ -static char *lo_mode = NULL; +static char *lo_mode; /* Kernel thread mode */ -static char *kthread_mode = NULL; -static unsigned multiple_kthread_on = 0; +static char *kthread_mode; +static unsigned int multiple_kthread_on; #define KNI_DEV_IN_USE_BIT_NUM 0 /* Bit number for device in use */