From 05bb1dd7a9b356df1acb73bc13b6a30dae67be55 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 8 Nov 2016 21:28:22 +0100 Subject: fix errors reported by clang Change-Id: Ib821e52dac7cd7ee24e6e495916689e23e8b699a Signed-off-by: Damjan Marion --- vnet/vnet/feature/feature.c | 2 +- vnet/vnet/feature/feature.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'vnet') diff --git a/vnet/vnet/feature/feature.c b/vnet/vnet/feature/feature.c index c518cc61..bfdea3db 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 ad4317af..765af356 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 -- cgit 1.2.3-korg