dpdkstats: Fix compilation issue.
authorMytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
Tue, 7 Nov 2017 11:56:54 +0000 (12:56 +0100)
committerMytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
Tue, 7 Nov 2017 12:00:54 +0000 (13:00 +0100)
src/dpdkstat.c:128:10: error: unused variable ‘errbuf’ [-Werror=unused-variable]
src/dpdkstat.c:449:10: error: unused variable ‘errbuf’ [-Werror=unused-variable]

Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
src/dpdkstat.c

index b831311..134801b 100644 (file)
@@ -125,7 +125,6 @@ static int dpdk_stats_preinit(void) {
 
   int ret = dpdk_helper_init(g_shm_name, sizeof(dpdk_stats_ctx_t), &g_hc);
   if (ret != 0) {
-    char errbuf[ERR_BUF_SIZE];
     ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN,
           g_shm_name, STRERRNO);
     return ret;
@@ -446,7 +445,6 @@ static int dpdk_stats_reinit_helper() {
   int ret;
   ret = dpdk_helper_init(g_shm_name, data_size, &g_hc);
   if (ret != 0) {
-    char errbuf[ERR_BUF_SIZE];
     ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN,
           g_shm_name, STRERRNO);
     return ret;