diff options
-rw-r--r-- | vnet/vnet/feature/feature.c | 2 | ||||
-rw-r--r-- | vnet/vnet/feature/feature.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/vnet/vnet/feature/feature.c b/vnet/vnet/feature/feature.c index c518cc611a4..bfdea3db41f 100644 --- a/vnet/vnet/feature/feature.c +++ b/vnet/vnet/feature/feature.c @@ -175,7 +175,7 @@ vnet_feature_enable_disable (const char *arc_name, const char *node_name, arc_index = vnet_get_feature_arc_index (arc_name); - if (arc_index == ~(u8) 0) + if (arc_index == (u8) ~ 0) return; cm = &fm->feature_config_mains[arc_index]; diff --git a/vnet/vnet/feature/feature.h b/vnet/vnet/feature/feature.h index ad4317afd6f..765af356d3f 100644 --- a/vnet/vnet/feature/feature.h +++ b/vnet/vnet/feature/feature.h @@ -158,6 +158,7 @@ vnet_feature_arc_start_with_data (u8 arc, u32 sw_if_index, u32 * next, return vnet_get_config_data (&cm->config_main, &b->current_config_index, next, n_data_bytes); } + return 0; } static_always_inline void |