aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-06-12 11:39:15 +0200
committerOle Troan <ot@cisco.com>2018-06-12 11:40:18 +0200
commite2552039dfcf91fe9f7b237da5fd1b74bf449ca2 (patch)
treed2f2a4d798661e43deead6b051dc02bce957618f
parent0af529c4c50bfa52e83cd4190e7d8baa5b20022f (diff)
MTU assigning to itself (Coverity)
Change-Id: Iee8de25ab3c68ae3698c79852195dc336050914c Signed-off-by: Ole Troan <ot@cisco.com>
-rw-r--r--src/plugins/dpdk/device/init.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index 461bae0ba62..66678e685c0 100644
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -1679,10 +1679,6 @@ dpdk_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f)
clib_memcpy (sei->address, addr, 6);
/* Set l3 packet size allowed as the lowest of slave */
if (bhi->max_packet_bytes > shi->max_packet_bytes)
- bhi->max_packet_bytes = bhi->max_packet_bytes;
-
- /* Set max packet size allowed as the lowest of slave */
- if (bhi->max_packet_bytes > shi->max_packet_bytes)
bhi->max_packet_bytes = shi->max_packet_bytes;
}
}