ip: coverity fix
Delete Null-checking "p0" in function ip6_tcp_udp_icmp_bad_length,
because it's not necessary.
Type: fix
@@ -1161,8 +1161,7 @@ ip6_tcp_udp_icmp_bad_length (vlib_main_t * vm, vlib_buffer_t * p0)
payload_length_host_byte_order = clib_net_to_host_u16 (ip0->payload_length);
n_bytes_left = n_this_buffer = payload_length_host_byte_order;
- if (p0)
- {
+
u32 n_ip_bytes_this_buffer =
p0->current_length - (((u8 *) ip0 - p0->data) - p0->current_data);
if (n_this_buffer + headers_size > n_ip_bytes_this_buffer)
@@ -1170,7 +1169,6 @@ ip6_tcp_udp_icmp_bad_length (vlib_main_t * vm, vlib_buffer_t * p0)
n_this_buffer = p0->current_length > headers_size ?
n_ip_bytes_this_buffer - headers_size : 0;
}
- }
n_bytes_left -= n_this_buffer;
n_bytes_left -= p0->total_length_not_including_first_buffer;
