summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2023-07-25 12:32:01 -0700
committerDave Wallace <dwallacelf@gmail.com>2023-07-26 01:57:13 +0000
commit116392b1742e86440c6a194170c1c9bca1314fe1 (patch)
tree372e6096ea56d102c04912e15562b6492d04e6ff /src
parent0028e6f31624246e831b5b1a13dc46ab1d864fa7 (diff)
stats: remove extra format line
The extra format line was added for no reason from patch ff27c9f8e. Type: fix Fixes: ff27c9f8e Change-Id: Ib25149cc8a17c29d0c8a0dbc06f0ea12ca4f328c Signed-off-by: Steven Luong <sluong@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/interface/stats.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/interface/stats.c b/src/vnet/interface/stats.c
index cb0eda001d7..4f3213aafc3 100644
--- a/src/vnet/interface/stats.c
+++ b/src/vnet/interface/stats.c
@@ -25,7 +25,7 @@ static struct
static clib_error_t *
statseg_sw_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
{
- u8 *name;
+ u8 *name = 0;
if (if_names == 0)
{
@@ -58,7 +58,6 @@ statseg_sw_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
for (u32 index, i = 0; i < ARRAY_LEN (if_counters); i++)
{
- name = format (0, "%v", hi_sup->name);
index = vlib_stats_add_symlink (
if_counters[i].index, sw_if_index, "/interfaces/%U/%s",
format_vlib_stats_symlink, name, if_counters[i].name);