aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-11-08 21:28:22 +0100
committerChris Luke <chris_luke@comcast.com>2016-11-09 12:12:55 +0000
commit05bb1dd7a9b356df1acb73bc13b6a30dae67be55 (patch)
tree336f42fd50f8dc2df2a39c267f5132ebeb13e385 /vnet
parent778c2765c8ea5c6628f6d668847f0b9ae06dbf3d (diff)
fix errors reported by clang
Change-Id: Ib821e52dac7cd7ee24e6e495916689e23e8b699a Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/feature/feature.c2
-rw-r--r--vnet/vnet/feature/feature.h1
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