summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-08-22 10:49:24 +0200
committerNeale Ranns <nranns@cisco.com>2017-08-22 11:17:57 +0000
commit87318463aa3abfe22984f78c1b31db8a355fae76 (patch)
tree3b27cec655102a61787be93e4124b9361a60fdcc /src/vnet
parent910744394f2529ecac0fa91a16237777e023c5e6 (diff)
policer: remove unused code
This is causing compiler error with gcc 7. Change-Id: Ia65ee9d80ab263c79e82ad805e5cc5a12af91f85 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/policer/xlate.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/vnet/policer/xlate.c b/src/vnet/policer/xlate.c
index b1c055ed27c..af8bc5a9900 100644
--- a/src/vnet/policer/xlate.c
+++ b/src/vnet/policer/xlate.c
@@ -1172,7 +1172,6 @@ sse2_pol_logical_2_physical (sse2_qos_pol_cfg_params_st * cfg,
policer_read_response_type_st * phys)
{
int rc;
- sse2_qos_pol_hw_params_st pol_hw;
sse2_qos_pol_cfg_params_st kbps_cfg;
memset (phys, 0, sizeof (policer_read_response_type_st));
@@ -1270,9 +1269,6 @@ sse2_pol_logical_2_physical (sse2_qos_pol_cfg_params_st * cfg,
phys->extended_bucket = cfg->extended_bucket;
}
- // Touch to avoid compiler warning for X86
- pol_hw.allow_negative = pol_hw.allow_negative;
-
#endif // if !defined (INTERNAL_SS) && !defined (X86)
return 0;